mirror of
https://github.com/coder/code-server.git
synced 2026-05-10 14:27:26 +02:00
Compare commits
1 Commits
v4.113.0
...
ae27d7a4ee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae27d7a4ee |
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -157,8 +157,6 @@ jobs:
|
|||||||
VERSION: 0.0.0
|
VERSION: 0.0.0
|
||||||
VSCODE_TARGET: linux-x64
|
VSCODE_TARGET: linux-x64
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: sudo apt update && sudo apt install -y libkrb5-dev
|
- run: sudo apt update && sudo apt install -y libkrb5-dev
|
||||||
|
|||||||
5
.github/workflows/publish.yaml
vendored
5
.github/workflows/publish.yaml
vendored
@@ -41,15 +41,14 @@ jobs:
|
|||||||
- uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
|
- uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
|
||||||
with:
|
with:
|
||||||
repository: "coder/code-server"
|
repository: "coder/code-server"
|
||||||
tag: ${{ env.TAG }}
|
tag: ${{ inputs.version || github.ref_name }}
|
||||||
fileName: "package.tar.gz"
|
fileName: "package.tar.gz"
|
||||||
out-file-path: "release-npm-package"
|
out-file-path: "release-npm-package"
|
||||||
|
|
||||||
- run: tar -xzf release-npm-package/package.tar.gz
|
- run: tar -xzf release-npm-package/package.tar.gz
|
||||||
- run: |
|
- run: |
|
||||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
|
||||||
pushd release
|
pushd release
|
||||||
npm publish --tag latest --access public
|
npm publish --access public
|
||||||
|
|
||||||
aur:
|
aur:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
108
.github/workflows/release.yaml
vendored
108
.github/workflows/release.yaml
vendored
@@ -19,46 +19,75 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package-linux:
|
package-linux:
|
||||||
name: ${{ format('linux-{0}', matrix.vscode_arch) }}
|
name: ${{ matrix.vscode_target }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
|
container: "python:3.8-slim-buster"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- npm_arch: x64
|
- prefix: x86_64-linux-gnu
|
||||||
vscode_arch: x64
|
npm_arch: x64
|
||||||
|
apt_arch: amd64
|
||||||
package_arch: amd64
|
package_arch: amd64
|
||||||
- npm_arch: arm64
|
vscode_target: linux-x64
|
||||||
vscode_arch: arm64
|
- prefix: aarch64-linux-gnu
|
||||||
|
npm_arch: arm64
|
||||||
|
apt_arch: arm64
|
||||||
package_arch: arm64
|
package_arch: arm64
|
||||||
- npm_arch: arm
|
vscode_target: linux-arm64
|
||||||
vscode_arch: armhf
|
- prefix: arm-linux-gnueabihf
|
||||||
|
npm_arch: armv7l
|
||||||
|
apt_arch: armhf
|
||||||
package_arch: armv7l
|
package_arch: armv7l
|
||||||
|
vscode_target: linux-armhf
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
AR: ${{ format('{0}-ar', matrix.prefix) }}
|
||||||
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
AS: ${{ format('{0}-as', matrix.prefix) }}
|
||||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
CC: ${{ format('{0}-gcc', matrix.prefix) }}
|
||||||
TAG: ${{ inputs.version || github.ref_name }}
|
CPP: ${{ format('{0}-cpp', matrix.prefix) }}
|
||||||
# Set release package name.
|
CXX: ${{ format('{0}-g++', matrix.prefix) }}
|
||||||
ARCH: ${{ matrix.package_arch }}
|
FC: ${{ format('{0}-gfortran', matrix.prefix) }}
|
||||||
# Cross-compile target.
|
LD: ${{ format('{0}-ld', matrix.prefix) }}
|
||||||
VSCODE_ARCH: ${{ matrix.vscode_arch }}
|
STRIP: ${{ format('{0}-strip', matrix.prefix) }}
|
||||||
|
PKG_CONFIG_PATH: ${{ format('/usr/lib/{0}/pkgconfig', matrix.prefix) }}
|
||||||
|
# Set cross-compiler package arch.
|
||||||
|
APT_ARCH: ${{ matrix.apt_arch }}
|
||||||
|
# For downloading the right Node.
|
||||||
npm_config_arch: ${{ matrix.npm_arch }}
|
npm_config_arch: ${{ matrix.npm_arch }}
|
||||||
# Gulp target name.
|
# Overrides package architecture.
|
||||||
VSCODE_TARGET: ${{ format('linux-{0}', matrix.vscode_arch) }}
|
ARCH: ${{ matrix.package_arch }}
|
||||||
|
# Not building from source results in an x86_64 argon2, as if
|
||||||
|
# npm_config_arch is being ignored.
|
||||||
|
npm_config_build_from_source: true
|
||||||
|
# Overrides VS Code gulp build target.
|
||||||
|
VSCODE_TARGET: ${{ matrix.vscode_target }}
|
||||||
|
TAG: ${{ inputs.version || github.ref_name }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: sudo apt update && sudo apt install -y libkrb5-dev
|
- name: Install cross-compiler and system dependencies
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # latest
|
run: |
|
||||||
with:
|
sed -i 's/deb\.debian\.org/archive.debian.org/g' /etc/apt/sources.list
|
||||||
packages: quilt
|
dpkg --add-architecture $APT_ARCH
|
||||||
version: 1.0
|
apt update && apt install -y --no-install-recommends \
|
||||||
|
crossbuild-essential-$APT_ARCH \
|
||||||
|
libx11-dev:$APT_ARCH \
|
||||||
|
libx11-xcb-dev:$APT_ARCH \
|
||||||
|
libxkbfile-dev:$APT_ARCH \
|
||||||
|
libsecret-1-dev:$APT_ARCH \
|
||||||
|
libkrb5-dev:$APT_ARCH \
|
||||||
|
ca-certificates \
|
||||||
|
curl wget rsync gettext-base
|
||||||
- name: Install nfpm
|
- name: Install nfpm
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
|
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
|
||||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
|
- run: sudo apt update && sudo apt install -y libkrb5-dev
|
||||||
|
- uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # latest
|
||||||
|
with:
|
||||||
|
packages: quilt
|
||||||
|
version: 1.0
|
||||||
|
|
||||||
- name: Set version to tag without leading v
|
- name: Set version to tag without leading v
|
||||||
run: |
|
run: |
|
||||||
@@ -75,28 +104,17 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
package-lock.json
|
package-lock.json
|
||||||
test/package-lock.json
|
test/package-lock.json
|
||||||
|
- run: npm ci
|
||||||
- name: Build
|
- run: npm run build
|
||||||
run: |
|
- run: npm run build:vscode
|
||||||
cd lib/vscode/build
|
|
||||||
npm ci
|
|
||||||
cd ..
|
|
||||||
source ./build/azure-pipelines/linux/setup-env.sh
|
|
||||||
# Run preinstall script before root dependencies are installed
|
|
||||||
# so that v8 headers are patched correctly for native modules.
|
|
||||||
node build/npm/preinstall.ts
|
|
||||||
cd ../..
|
|
||||||
npm ci
|
|
||||||
npm run build
|
|
||||||
npm run build:vscode
|
|
||||||
|
|
||||||
# Platform-agnostic NPM package.
|
# Platform-agnostic NPM package.
|
||||||
- run: npm run release
|
- run: npm run release
|
||||||
if: ${{ matrix.vscode_arch == 'x64' }}
|
if: ${{ matrix.vscode_target == 'linux-x64' }}
|
||||||
- run: tar -czf package.tar.gz release
|
- run: tar -czf package.tar.gz release
|
||||||
if: ${{ matrix.vscode_arch == 'x64' }}
|
if: ${{ matrix.vscode_target == 'linux-x64' }}
|
||||||
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
||||||
if: ${{ matrix.vscode_arch == 'x64' }}
|
if: ${{ matrix.vscode_target == 'linux-x64' }}
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
discussion_category_name: "📣 Announcements"
|
discussion_category_name: "📣 Announcements"
|
||||||
@@ -104,6 +122,13 @@ jobs:
|
|||||||
|
|
||||||
# Platform-specific release.
|
# Platform-specific release.
|
||||||
- run: KEEP_MODULES=1 npm run release
|
- run: KEEP_MODULES=1 npm run release
|
||||||
|
- name: Replace node with cross-compile equivalent
|
||||||
|
run: |
|
||||||
|
node_version=$(node --version)
|
||||||
|
wget https://nodejs.org/dist/${node_version}/node-${node_version}-linux-${npm_config_arch}.tar.xz
|
||||||
|
tar -xf node-${node_version}-linux-${npm_config_arch}.tar.xz node-${node_version}-linux-${npm_config_arch}/bin/node --strip-components=2
|
||||||
|
mv ./node ./release/lib/node
|
||||||
|
|
||||||
- run: npm run package
|
- run: npm run package
|
||||||
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
||||||
with:
|
with:
|
||||||
@@ -153,7 +178,6 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
package-lock.json
|
package-lock.json
|
||||||
test/package-lock.json
|
test/package-lock.json
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run build:vscode
|
- run: npm run build:vscode
|
||||||
|
|||||||
33
CHANGELOG.md
33
CHANGELOG.md
@@ -22,39 +22,6 @@ Code v99.99.999
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
## [4.112.0](https://github.com/coder/code-server/releases/tag/v4.112.0) - 2026-03-19
|
|
||||||
|
|
||||||
Code v1.112.0
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Update to Code 1.112.0
|
|
||||||
|
|
||||||
## [4.111.0](https://github.com/coder/code-server/releases/tag/v4.111.0) - 2026-03-11
|
|
||||||
|
|
||||||
Code v1.111.0
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Update to Code 1.111.0
|
|
||||||
- `--app-name` now affects the error page title.
|
|
||||||
|
|
||||||
## [4.110.1](https://github.com/coder/code-server/releases/tag/v4.110.1) - 2026-03-10
|
|
||||||
|
|
||||||
Code v1.110.1
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Update to Code 1.110.1
|
|
||||||
|
|
||||||
## [4.110.0](https://github.com/coder/code-server/releases/tag/v4.110.0) - 2026-03-09
|
|
||||||
|
|
||||||
Code v1.110.0
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Update to Code 1.110.0
|
|
||||||
|
|
||||||
## [4.109.5](https://github.com/coder/code-server/releases/tag/v4.109.5) - 2026-03-02
|
## [4.109.5](https://github.com/coder/code-server/releases/tag/v4.109.5) - 2026-03-02
|
||||||
|
|
||||||
Code v1.109.5
|
Code v1.109.5
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ main() {
|
|||||||
release_archive() {
|
release_archive() {
|
||||||
local release_name="code-server-$VERSION-$OS-$ARCH"
|
local release_name="code-server-$VERSION-$OS-$ARCH"
|
||||||
if [[ $OS == "linux" ]]; then
|
if [[ $OS == "linux" ]]; then
|
||||||
tar -czf "release-packages/$release_name.tar.gz" --owner=0 --group=0 --transform "s/^$RELEASE_PATH/$release_name/" "$RELEASE_PATH"
|
tar -czf "release-packages/$release_name.tar.gz" --owner=0 --group=0 --transform "s/^\.\/$RELEASE_PATH/$release_name/" "$RELEASE_PATH"
|
||||||
else
|
else
|
||||||
tar -czf "release-packages/$release_name.tar.gz" -s "/^$RELEASE_PATH/$release_name/" "$RELEASE_PATH"
|
tar -czf "release-packages/$release_name.tar.gz" -s "/^$RELEASE_PATH/$release_name/" "$RELEASE_PATH"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ bundle_code_server() {
|
|||||||
jq --slurp '(.[0] | del(.scripts,.jest,.devDependencies)) * .[1]' package.json <(
|
jq --slurp '(.[0] | del(.scripts,.jest,.devDependencies)) * .[1]' package.json <(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
{
|
{
|
||||||
"version": "$(jq -r .codeServerVersion "./lib/vscode-reh-web-$VSCODE_TARGET/product.json")",
|
|
||||||
"commit": "$(git rev-parse HEAD)",
|
"commit": "$(git rev-parse HEAD)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "sh ./postinstall.sh"
|
"postinstall": "sh ./postinstall.sh"
|
||||||
@@ -85,15 +84,11 @@ EOF
|
|||||||
) > "$RELEASE_PATH/package.json"
|
) > "$RELEASE_PATH/package.json"
|
||||||
mv npm-shrinkwrap.json "$RELEASE_PATH"
|
mv npm-shrinkwrap.json "$RELEASE_PATH"
|
||||||
|
|
||||||
|
rsync ci/build/npm-postinstall.sh "$RELEASE_PATH/postinstall.sh"
|
||||||
|
|
||||||
if [ "$KEEP_MODULES" = 1 ]; then
|
if [ "$KEEP_MODULES" = 1 ]; then
|
||||||
rsync node_modules/ "$RELEASE_PATH/node_modules"
|
rsync node_modules/ "$RELEASE_PATH/node_modules"
|
||||||
# Remove dev dependencies.
|
|
||||||
pushd "$RELEASE_PATH"
|
|
||||||
npm prune --production
|
|
||||||
popd
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rsync ci/build/npm-postinstall.sh "$RELEASE_PATH/postinstall.sh"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bundle_vscode() {
|
bundle_vscode() {
|
||||||
@@ -112,9 +107,7 @@ bundle_vscode() {
|
|||||||
# need it for the npm package.
|
# 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.
|
||||||
# dependencies, so if we do keep them there is no need to do any
|
|
||||||
# post-processing to remove dev dependencies.
|
|
||||||
if [[ $KEEP_MODULES = 0 ]]; then
|
if [[ $KEEP_MODULES = 0 ]]; then
|
||||||
rsync_opts+=(--exclude node_modules)
|
rsync_opts+=(--exclude node_modules)
|
||||||
fi
|
fi
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -5067,9 +5067,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/picomatch": {
|
"node_modules/picomatch": {
|
||||||
"version": "4.0.3",
|
"version": "4.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
|
||||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
Reference in New Issue
Block a user