diff --git a/srcpkgs/vscode/template b/srcpkgs/vscode/template index 2bbbcbefbaa..3c2cfc79e14 100644 --- a/srcpkgs/vscode/template +++ b/srcpkgs/vscode/template @@ -1,8 +1,8 @@ # Template file for 'vscode' pkgname=vscode -version=1.97.2 +version=1.99.3 revision=1 -_electronver=33.0.2 +_electronver=33.2.0 _npmver=10.8.3 hostmakedepends="pkg-config python3 python3-setuptools nodejs tar git ripgrep" makedepends="libxkbfile-devel libsecret-devel libxml2-devel mit-krb5-devel nodejs-devel ncurses-devel electron33-devel" @@ -12,7 +12,7 @@ maintainer="Alex Lohr " license="MIT" homepage="https://code.visualstudio.com/" distfiles="https://github.com/microsoft/vscode/archive/refs/tags/${version}.tar.gz" -checksum=6bbb7144e11fefe06418c1f3671a877794a7513c2add85121f560dc686c31351 +checksum=81659cfc11d5c3a9a2ab46cd7e9a4d4ce4d4389a9e36cb8d1070503fc4e4ad3e nocross=yes # x64 build does not cut it, it contains native code if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then @@ -42,9 +42,9 @@ do_build() { npm install -g npm@${_npmver} # The default memory limit may be too low for current versions of node - # to successfully build vscode. This sets it to 4GB, but + # to successfully build vscode. This sets it to 8GB, but # change this number if it still doesn't work for your system. - _mem_limit="--max_old_space_size=4095" + _mem_limit="--max_old_space_size=16384" export NODE_OPTIONS="${_mem_limit}" @@ -58,7 +58,7 @@ do_build() { vsed -e "s/validateChecksum: true/validateChecksum: false/g" -i build/lib/electron.*s export CFLAGS="$CFLAGS -I/usr/include/node" - npm run gulp vscode-linux-x64-min + node_modules/.bin/gulp --max_old_space_size=16384 --optimize-for-size --series vscode-linux-x64-min } do_install() {