diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index 95b9b8c4b4d978cfa88670407e57507534338d84..883d6e83e9115804e4b4144fcb5df96a7429a730 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -233,6 +233,7 @@ function packageTask(platform, arch, opts) { result = es.merge(result, gulp.src('resources/win32/bin/code.js', { base: 'resources/win32' })); result = es.merge(result, gulp.src('resources/win32/bin/code.cmd', { base: 'resources/win32' }) + .pipe(replace('@@NAME@@', product.nameShort)) .pipe(rename(function (f) { f.basename = product.applicationName; }))); result = es.merge(result, gulp.src('resources/win32/bin/code.sh', { base: 'resources/win32' }) diff --git a/resources/win32/bin/code.cmd b/resources/win32/bin/code.cmd index 4fe8b88f9d58eb606dc75572b7748ad8a03bc3c8..a975610eb3195c00386b32674da41bd2362afe40 100644 --- a/resources/win32/bin/code.cmd +++ b/resources/win32/bin/code.cmd @@ -2,5 +2,5 @@ setlocal set VSCODE_DEV= set ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 -"%~dp0..\\Code.exe" "%~dp0code.js" %* +call "%~dp0..\@@NAME@@.exe" "%~dp0..\resources\\app\\out\\cli.js" %* endlocal \ No newline at end of file diff --git a/resources/win32/bin/code.js b/resources/win32/bin/code.js deleted file mode 100644 index 6dbd04f3e4ea92577bbed1b9ab655b8ff4447096..0000000000000000000000000000000000000000 --- a/resources/win32/bin/code.js +++ /dev/null @@ -1,3 +0,0 @@ -delete process.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE']; -require('child_process').spawn(require('path').resolve(__dirname, '..', 'Code.exe'), process.argv.slice(2), { detached: true, stdio: 'ignore' }); -process.exit(0); \ No newline at end of file