2021-02-26 21:14:40 +00:00
|
|
|
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
2021-12-09 01:30:35 +00:00
|
|
|
index df089a6..7aeb54b 100644
|
2021-02-26 21:14:40 +00:00
|
|
|
--- a/build/gulpfile.vscode.js
|
|
|
|
+++ b/build/gulpfile.vscode.js
|
2021-12-09 01:30:35 +00:00
|
|
|
@@ -286,7 +286,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
2021-02-26 21:14:40 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
2021-12-09 01:30:35 +00:00
|
|
|
index bd4dc01..02cbbc2 100644
|
2021-02-26 21:14:40 +00:00
|
|
|
--- a/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
|
|
|
+++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
2021-12-09 01:30:35 +00:00
|
|
|
@@ -355,7 +355,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
|
2021-06-12 21:53:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2021-12-09 01:30:35 +00:00
|
|
|
@@ -565,7 +565,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
|
2021-06-12 21:53:56 +00:00
|
|
|
|
2021-02-26 21:14:40 +00:00
|
|
|
// macOS
|
2021-03-11 01:13:52 +00:00
|
|
|
if (this.environmentMainService.isBuilt) {
|
|
|
|
- return join(this.environmentMainService.appRoot, 'bin', 'code');
|
2021-04-01 14:43:49 +00:00
|
|
|
+ return join(this.environmentMainService.appRoot, 'bin', `${this.productService.applicationName}`);
|
2021-02-26 21:14:40 +00:00
|
|
|
}
|
2021-06-12 21:53:56 +00:00
|
|
|
|
|
|
|
return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh');
|