Skip to content

Commit 8c8476e

Browse files
authored
Add a windows launcher to the standalone release (#7984)
1 parent 322f065 commit 8c8476e

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎ci/build/build-release.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ main() {
4141
rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server"
4242
chmod 755 "$RELEASE_PATH/bin/code-server"
4343

44+
# Windows cannot run the shell launcher, so it gets one of its own.
45+
if [ "$OS" = windows ]; then
46+
rsync ./ci/build/code-server.cmd "$RELEASE_PATH/bin/code-server.cmd"
47+
fi
48+
4449
# Delete the extra bin scripts.
4550
rm "$RELEASE_PATH/lib/vscode/bin/remote-cli/code-darwin.sh"
4651
rm "$RELEASE_PATH/lib/vscode/bin/remote-cli/code-linux.sh"

‎ci/build/code-server.cmd‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
3+
rem This script is intended to be bundled into the standalone releases.
4+
rem Runs code-server with the bundled node binary.
5+
6+
setlocal
7+
set "ROOT=%~dp0.."
8+
"%ROOT%\lib\node.exe" "%ROOT%" %*

0 commit comments

Comments
 (0)