From 8c8476eb76d73b5242076dbddfe7ef0e95c435f7 Mon Sep 17 00:00:00 2001 From: denusklo <79653229+denusklo@users.noreply.github.com> Date: Wed, 9 Sep 2026 04:27:19 +0800 Subject: [PATCH] Add a windows launcher to the standalone release (#7984) --- ci/build/build-release.sh | 5 +++++ ci/build/code-server.cmd | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 ci/build/code-server.cmd diff --git a/ci/build/build-release.sh b/ci/build/build-release.sh index 6dbc2784a..590fec3dd 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 000000000..1b6a5b2ac --- /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%" %*