mirror of
https://github.com/coder/code-server.git
synced 2026-09-10 03:40:31 +02:00
Add a windows launcher to the standalone release (#7984)
This commit is contained in:
@@ -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"
|
||||
|
||||
8
ci/build/code-server.cmd
Normal file
8
ci/build/code-server.cmd
Normal file
@@ -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%" %*
|
||||
Reference in New Issue
Block a user