From 8a714f41bd17f64db284eb1bdcb25ca9cc4f9c3b Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Thu, 15 Aug 2024 16:09:15 +0200 Subject: [PATCH] vscode: add version 1.92 user experienced issues with an older version of vscode so maybe updating it may fix this issue. --- vscode-1.92.0-0.build.sh | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 vscode-1.92.0-0.build.sh diff --git a/vscode-1.92.0-0.build.sh b/vscode-1.92.0-0.build.sh new file mode 100755 index 0000000..000d309 --- /dev/null +++ b/vscode-1.92.0-0.build.sh @@ -0,0 +1,46 @@ +#! /bin/bash + +PKG=vscode +VERSION=1.92.0 +BUILD=0 + +PREFIX=/pkg/$PKG-$VERSION-$BUILD +if [ -n "$TESTING" ]; then PREFIX=/scratch/local2/$PKG-$VERSION-$BUILD ; fi + +set -xe +umask 022 + +BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.build.tmp +test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR ) +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +exec $PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH + if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi +EOF +. $PREFIX/profile + +export MAKEFLAGS="-j $(nproc)" + +BUILDDIR=$PREFIX/build + +mkdir -p $BUILDDIR +cd $BUILDDIR + +test -e VSCode-linux-x64.tar.gz || wget https://update.code.visualstudio.com/${VERSION}/linux-x64/stable -O VSCode-linux-x64.tar.gz +cd $PREFIX +tar xvf build/VSCode-linux-x64.tar.gz --strip-components=1 + +cp ${PREFIX}/bin/code{,2} + +cat >$PREFIX/bin/code <<-EOF + #!/usr/bin/bash + $PREFIX/bin/code2 --password-store=basic \${@} +EOF +chmod a+x ${PREFIX}/bin/code +exit