mirror of
https://github.com/coder/code-server.git
synced 2026-05-07 12:57:26 +02:00
Compare commits
1 Commits
v4.113.1
...
e926aef728
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e926aef728 |
2
.github/workflows/publish.yaml
vendored
2
.github/workflows/publish.yaml
vendored
@@ -108,7 +108,7 @@ jobs:
|
|||||||
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
|
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
|
- uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
|
||||||
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
|
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
|
||||||
|
|
||||||
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
|
|||||||
@@ -36,6 +36,13 @@ main() {
|
|||||||
rsync ./lib/vscode/ThirdPartyNotices.txt "$RELEASE_PATH"
|
rsync ./lib/vscode/ThirdPartyNotices.txt "$RELEASE_PATH"
|
||||||
|
|
||||||
if [ "$KEEP_MODULES" = 1 ]; then
|
if [ "$KEEP_MODULES" = 1 ]; then
|
||||||
|
# Copy Node. Package managers may shim their own "node" wrapper into the
|
||||||
|
# PATH, so run node and ask it for its true path.
|
||||||
|
local node_path
|
||||||
|
node_path="$(node -p process.execPath)"
|
||||||
|
rsync "$node_path" "$RELEASE_PATH/lib/node"
|
||||||
|
chmod 755 "$RELEASE_PATH/lib/node"
|
||||||
|
|
||||||
# Copy the code-server launcher.
|
# Copy the code-server launcher.
|
||||||
mkdir -p "$RELEASE_PATH/bin"
|
mkdir -p "$RELEASE_PATH/bin"
|
||||||
rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server"
|
rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server"
|
||||||
@@ -101,7 +108,8 @@ bundle_vscode() {
|
|||||||
# npm package so exclude any .gitignore files.
|
# npm package so exclude any .gitignore files.
|
||||||
rsync_opts+=(--exclude .gitignore)
|
rsync_opts+=(--exclude .gitignore)
|
||||||
|
|
||||||
# Exclude Node since we want to place it in a directory above.
|
# Exclude Node as we will add it ourselves for the standalone and will not
|
||||||
|
# need it for the npm package.
|
||||||
rsync_opts+=(--exclude /node)
|
rsync_opts+=(--exclude /node)
|
||||||
|
|
||||||
# Exclude Node modules. Note that these will already only include production
|
# Exclude Node modules. Note that these will already only include production
|
||||||
@@ -113,11 +121,6 @@ bundle_vscode() {
|
|||||||
|
|
||||||
rsync "${rsync_opts[@]}" "./lib/vscode-reh-web-$VSCODE_TARGET/" "$VSCODE_OUT_PATH"
|
rsync "${rsync_opts[@]}" "./lib/vscode-reh-web-$VSCODE_TARGET/" "$VSCODE_OUT_PATH"
|
||||||
|
|
||||||
# Copy the Node binary.
|
|
||||||
if [[ $KEEP_MODULES = 1 ]]; then
|
|
||||||
cp "./lib/vscode-reh-web-$VSCODE_TARGET/node" "$RELEASE_PATH/lib"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Merge the package.json for the web/remote server so we can include
|
# Merge the package.json for the web/remote server so we can include
|
||||||
# dependencies, since we want to ship this via NPM.
|
# dependencies, since we want to ship this via NPM.
|
||||||
jq --slurp '.[0] * .[1]' \
|
jq --slurp '.[0] * .[1]' \
|
||||||
|
|||||||
Reference in New Issue
Block a user