mirror of
https://github.com/VSCodium/vscodium
synced 2024-10-30 03:47:40 +00:00
35 lines
1.7 KiB
Diff
35 lines
1.7 KiB
Diff
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
|
index 2686509..4fedec2 100644
|
|
--- a/build/gulpfile.vscode.js
|
|
+++ b/build/gulpfile.vscode.js
|
|
@@ -289,7 +289,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
|
} else if (platform === 'darwin') {
|
|
const shortcut = gulp.src('resources/darwin/bin/code.sh')
|
|
.pipe(replace('@@APPNAME@@', product.applicationName))
|
|
- .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
|
|
index f7bd477..a489ae4 100644
|
|
--- a/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
|
+++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts
|
|
@@ -351,7 +351,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
|
|
@@ -545,7 +545,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
|
|
|
|
// macOS
|
|
if (this.environmentMainService.isBuilt) {
|
|
- return join(this.environmentMainService.appRoot, 'bin', 'code');
|
|
+ return join(this.environmentMainService.appRoot, 'bin', `${this.productService.applicationName}`);
|
|
}
|
|
|
|
return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh');
|