diff --git a/ci/build/build-release.sh b/ci/build/build-release.sh index 6dbc2784acbc..590fec3dde13 100755 --- a/ci/build/build-release.sh +++ b/ci/build/build-release.sh @@ -41,6 +41,11 @@ main() { rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server" chmod 755 "$RELEASE_PATH/bin/code-server" + # Windows cannot run the shell launcher, so it gets one of its own. + if [ "$OS" = windows ]; then + rsync ./ci/build/code-server.cmd "$RELEASE_PATH/bin/code-server.cmd" + fi + # Delete the extra bin scripts. rm "$RELEASE_PATH/lib/vscode/bin/remote-cli/code-darwin.sh" rm "$RELEASE_PATH/lib/vscode/bin/remote-cli/code-linux.sh" diff --git a/ci/build/code-server.cmd b/ci/build/code-server.cmd new file mode 100644 index 000000000000..1b6a5b2ac1e5 --- /dev/null +++ b/ci/build/code-server.cmd @@ -0,0 +1,8 @@ +@echo off + +rem This script is intended to be bundled into the standalone releases. +rem Runs code-server with the bundled node binary. + +setlocal +set "ROOT=%~dp0.." +"%ROOT%\lib\node.exe" "%ROOT%" %*