mirror of
https://github.com/coder/code-server.git
synced 2026-05-12 07:17:26 +02:00
Compare commits
1 Commits
v4.114.1
...
bc66781781
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc66781781 |
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@@ -45,11 +45,7 @@ jobs:
|
|||||||
# Cross-compile target.
|
# Cross-compile target.
|
||||||
VSCODE_ARCH: ${{ matrix.vscode_arch }}
|
VSCODE_ARCH: ${{ matrix.vscode_arch }}
|
||||||
npm_config_arch: ${{ matrix.npm_arch }}
|
npm_config_arch: ${{ matrix.npm_arch }}
|
||||||
# Ensure native modules are built from source to avoid prebuilds and use
|
|
||||||
# the correct version of glibc.
|
|
||||||
npm_config_build_from_source: true
|
|
||||||
# Gulp target name.
|
# Gulp target name.
|
||||||
# TODO: Pull from VSCODE_ARCH instead.
|
|
||||||
VSCODE_TARGET: ${{ format('linux-{0}', matrix.vscode_arch) }}
|
VSCODE_TARGET: ${{ format('linux-{0}', matrix.vscode_arch) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -129,8 +125,6 @@ jobs:
|
|||||||
VSCODE_TARGET: ${{ matrix.vscode_target }}
|
VSCODE_TARGET: ${{ matrix.vscode_target }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG: ${{ inputs.version || github.ref_name }}
|
TAG: ${{ inputs.version || github.ref_name }}
|
||||||
# Ensure native modules are built from source to avoid prebuilds.
|
|
||||||
npm_config_build_from_source: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# The version of node-gyp we use depends on distutils but it was removed
|
# The version of node-gyp we use depends on distutils but it was removed
|
||||||
|
|||||||
@@ -79,15 +79,7 @@ EOF
|
|||||||
mv npm-shrinkwrap.json "$RELEASE_PATH"
|
mv npm-shrinkwrap.json "$RELEASE_PATH"
|
||||||
|
|
||||||
if [ "$KEEP_MODULES" = 1 ]; then
|
if [ "$KEEP_MODULES" = 1 ]; then
|
||||||
local rsync_opts=(-a)
|
rsync node_modules/ "$RELEASE_PATH/node_modules"
|
||||||
if [[ ${DEBUG-} = 1 ]]; then
|
|
||||||
rsync_opts+=(-vh)
|
|
||||||
fi
|
|
||||||
# If we build from source, exclude the prebuilds.
|
|
||||||
if [[ ${npm_config_build_from_source-} = true ]]; then
|
|
||||||
rsync_opts+=(--exclude /argon2/prebuilds)
|
|
||||||
fi
|
|
||||||
rsync "${rsync_opts[@]}" node_modules/ "$RELEASE_PATH/node_modules"
|
|
||||||
# Remove dev dependencies.
|
# Remove dev dependencies.
|
||||||
pushd "$RELEASE_PATH"
|
pushd "$RELEASE_PATH"
|
||||||
npm prune --production
|
npm prune --production
|
||||||
@@ -100,7 +92,7 @@ EOF
|
|||||||
bundle_vscode() {
|
bundle_vscode() {
|
||||||
mkdir -p "$VSCODE_OUT_PATH"
|
mkdir -p "$VSCODE_OUT_PATH"
|
||||||
|
|
||||||
local rsync_opts=(-a)
|
local rsync_opts=()
|
||||||
if [[ ${DEBUG-} = 1 ]]; then
|
if [[ ${DEBUG-} = 1 ]]; then
|
||||||
rsync_opts+=(-vh)
|
rsync_opts+=(-vh)
|
||||||
fi
|
fi
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -5042,9 +5042,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/path-to-regexp": {
|
"node_modules/path-to-regexp": {
|
||||||
"version": "8.3.0",
|
"version": "8.4.2",
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",
|
||||||
"integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
|
"integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|||||||
Reference in New Issue
Block a user