2021-02-26 16:14:40 -05:00
|
|
|
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
|
|
|
index 6d3a369..57009d4 100644
|
|
|
|
--- a/build/gulpfile.vscode.js
|
|
|
|
+++ b/build/gulpfile.vscode.js
|
|
|
|
@@ -276,7 +276,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
|
|
|
all = es.merge(all, gulp.src('resources/linux/code.png', { base: '.' }));
|
|
|
|
} else if (platform === 'darwin') {
|
|
|
|
const shortcut = gulp.src('resources/darwin/bin/code.sh')
|
|
|
|
- .pipe(rename('bin/code'));
|
|
|
|
+ .pipe(rename('bin/' + product.applicationName));
|
|
|
|
|
|
|
|
all = es.merge(all, shortcut);
|
|
|
|
}
|
|
|
|
@@ -483,7 +483,7 @@ const generateVSCodeConfigurationTask = task.define('generate-vscode-configurati
|
|
|
|
const arch = process.env['VSCODE_ARCH'];
|
|
|
|
const appRoot = path.join(buildDir, `VSCode-darwin-${arch}`);
|
|
|
|
const appName = process.env.VSCODE_QUALITY === 'insider' ? 'Visual\\ Studio\\ Code\\ -\\ Insiders.app' : 'Visual\\ Studio\\ Code.app';
|
|
|
|
- const appPath = path.join(appRoot, appName, 'Contents', 'Resources', 'app', 'bin', 'code');
|
|
|
|
+ const appPath = path.join(appRoot, appName, 'Contents', 'Resources', 'app', 'bin', product.applicationName);
|
|
|
|
const codeProc = cp.exec(
|
|
|
|
`${appPath} --export-default-configuration='${allConfigDetailsPath}' --wait --user-data-dir='${userDataDir}' --extensions-dir='${extensionsDir}'`,
|
|
|
|
(err, stdout, stderr) => {
|
|
|
|
diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
2021-06-12 17:53:56 -04:00
|
|
|
index 692db1d..cd173bc 100644
|
2021-02-26 16:14:40 -05:00
|
|
|
--- a/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
|
|
|
+++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
2021-06-12 17:53:56 -04:00
|
|
|
@@ -341,7 +341,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
|
|
|
|
}
|
|
|
|
|
|
|
|
private async getShellCommandLink(): Promise<{ readonly source: string, readonly target: string }> {
|
|
|
|
- const target = resolve(this.environmentMainService.appRoot, 'bin', 'code');
|
|
|
|
+ const target = resolve(this.environmentMainService.appRoot, 'bin', this.productService.applicationName);
|
|
|
|
const source = `/usr/local/bin/${this.productService.applicationName}`;
|
|
|
|
|
|
|
|
// Ensure source exists
|
|
|
|
@@ -551,7 +551,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
|
|
|
|
|
2021-02-26 16:14:40 -05:00
|
|
|
// macOS
|
2021-03-10 20:13:52 -05:00
|
|
|
if (this.environmentMainService.isBuilt) {
|
|
|
|
- return join(this.environmentMainService.appRoot, 'bin', 'code');
|
2021-04-01 10:43:49 -04:00
|
|
|
+ return join(this.environmentMainService.appRoot, 'bin', `${this.productService.applicationName}`);
|
2021-02-26 16:14:40 -05:00
|
|
|
}
|
2021-06-12 17:53:56 -04:00
|
|
|
|
|
|
|
return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh');
|
|
|
|
|