Skip to content

Commit

Permalink
vscode: add version 1.92
Browse files Browse the repository at this point in the history
user experienced issues with an older version of vscode so
maybe updating it may fix this issue.
  • Loading branch information
niclas committed Aug 15, 2024
1 parent f7ad8ea commit 8a714f4
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions vscode-1.92.0-0.build.sh
Original file line number Diff line number Diff line change
@@ -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 </dev/null

mkdir -p $PREFIX
cat >$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

0 comments on commit 8a714f4

Please sign in to comment.