Skip to content

Commit d6325ac

Browse files
committed
code-oss: bump to 1.125.0
1 parent 0c124fe commit d6325ac

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

x11-packages/code-oss/build.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/microsoft/vscode
22
TERMUX_PKG_DESCRIPTION="Visual Studio Code - OSS"
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@licy183"
5-
TERMUX_PKG_VERSION="1.122.1"
5+
TERMUX_PKG_VERSION="1.125.0"
66
TERMUX_PKG_SRCURL=git+https://github.com/microsoft/vscode
77
TERMUX_PKG_GIT_BRANCH="$TERMUX_PKG_VERSION"
88
TERMUX_PKG_DEPENDS="electron-for-code-oss, libx11, libxkbfile, libsecret, ripgrep"
@@ -18,26 +18,26 @@ TERMUX_PKG_AUTO_UPDATE=true
1818
TERMUX_PKG_UPDATE_TAG_TYPE="latest-release-tag"
1919
TERMUX_PKG_ON_DEVICE_BUILD_NOT_SUPPORTED=true
2020

21-
_setup_nodejs_22() {
22-
local NODEJS_VERSION=22.22.1
21+
_setup_nodejs_24() {
22+
local NODEJS_VERSION=24.15.0
2323
local NODEJS_FOLDER=${TERMUX_PKG_CACHEDIR}/build-tools/nodejs-${NODEJS_VERSION}
2424

2525
if [ ! -x "$NODEJS_FOLDER/bin/node" ]; then
2626
mkdir -p "$NODEJS_FOLDER"
2727
local NODEJS_TAR_FILE=$TERMUX_PKG_TMPDIR/nodejs-$NODEJS_VERSION.tar.xz
2828
termux_download https://nodejs.org/dist/v${NODEJS_VERSION}/node-v${NODEJS_VERSION}-linux-x64.tar.xz \
2929
"$NODEJS_TAR_FILE" \
30-
9a6bc82f9b491279147219f6a18add1e18424dce90d41d2a5fcd69d4924ba3aa
30+
472655581fb851559730c48763e0c9d3bc25975c59d518003fc0849d3e4ba0f6
3131
tar -xf "$NODEJS_TAR_FILE" -C "$NODEJS_FOLDER" --strip-components=1
3232
fi
3333
export PATH="$NODEJS_FOLDER/bin:$PATH"
3434
}
3535

3636
termux_step_post_get_source() {
37-
# Ensure that code-oss supports node 22
37+
# Ensure that code-oss supports node 24
3838
local _node_version=$(cat .nvmrc | cut -d. -f1 -)
39-
if [ "$_node_version" != 22 ]; then
40-
termux_error_exit "Version mismatch: Expected 22, got $_node_version."
39+
if [ "$_node_version" != 24 ]; then
40+
termux_error_exit "Version mismatch: Expected 24, got $_node_version."
4141
fi
4242

4343
# Check whether the prebuilt electron version matches the electron version from package.json
@@ -62,15 +62,15 @@ termux_step_post_get_source() {
6262
}
6363

6464
termux_step_host_build() {
65-
_setup_nodejs_22
65+
_setup_nodejs_24
6666
export DISABLE_V8_COMPILE_CACHE=1
6767
(unset PREFIX prefix
6868
npm install node-gyp)
6969
export PATH="$TERMUX_PKG_HOSTBUILD_DIR/node_modules/.bin:$PATH"
7070
}
7171

7272
termux_step_configure() {
73-
_setup_nodejs_22
73+
_setup_nodejs_24
7474
export PATH="$TERMUX_PKG_HOSTBUILD_DIR/node_modules/.bin:$PATH"
7575
}
7676

@@ -117,7 +117,7 @@ termux_step_make_install() {
117117
chmod +x $TERMUX_PREFIX/lib/code-oss/bin/code-oss
118118

119119
# Replace ripgrep
120-
ln -sfr $TERMUX_PREFIX/bin/rg $TERMUX_PREFIX/lib/code-oss/resources/app/node_modules/@vscode/ripgrep-universal/bin/rg
120+
ln -sf $TERMUX_PREFIX/bin/rg $TERMUX_PREFIX/lib/code-oss/resources/app/node_modules/@vscode/ripgrep-universal/bin/linux-$NPM_CONFIG_ARCH/rg
121121

122122
# Install appdata and desktop file
123123
sed -i "s|@@NAME_SHORT@@|Code|g

0 commit comments

Comments
 (0)