binary-name.patch 1.6 KB

1234567891011121314151617181920212223
  1. diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
  2. index 7046ee0..faca888 100644
  3. --- a/build/gulpfile.vscode.js
  4. +++ b/build/gulpfile.vscode.js
  5. @@ -376,3 +376,3 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
  6. .pipe(replace('@@APPNAME@@', product.applicationName))
  7. - .pipe(rename('bin/code'));
  8. + .pipe(rename('bin/' + product.applicationName));
  9. const policyDest = gulp.src('.build/policies/darwin/**', { base: '.build/policies/darwin' })
  10. diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src/vs/platform/native/electron-main/nativeHostMainService.ts
  11. index 6324e98..3d2fba3 100644
  12. --- a/src/vs/platform/native/electron-main/nativeHostMainService.ts
  13. +++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts
  14. @@ -445,3 +445,3 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
  15. private async getShellCommandLink(): Promise<{ readonly source: string; readonly target: string }> {
  16. - const target = resolve(this.environmentMainService.appRoot, 'bin', 'code');
  17. + const target = resolve(this.environmentMainService.appRoot, 'bin', this.productService.applicationName);
  18. const source = `/usr/local/bin/${this.productService.applicationName}`;
  19. @@ -680,3 +680,3 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
  20. if (this.environmentMainService.isBuilt) {
  21. - return join(this.environmentMainService.appRoot, 'bin', 'code');
  22. + return join(this.environmentMainService.appRoot, 'bin', `${this.productService.applicationName}`);
  23. }