diff options
Diffstat (limited to 'development/vscode/vscode.SlackBuild')
-rw-r--r-- | development/vscode/vscode.SlackBuild | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/development/vscode/vscode.SlackBuild b/development/vscode/vscode.SlackBuild index 8609019502920..c8ab786394b94 100644 --- a/development/vscode/vscode.SlackBuild +++ b/development/vscode/vscode.SlackBuild @@ -23,7 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=vscode -VERSION=${VERSION:-1.11.2} +VERSION=${VERSION:-1.13.1} +COMMIT=${COMMIT:-376c52b955428d205459bea6619fc161fc8faacf} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,19 +63,26 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p1 < $CWD/vscode-$VERSION.patch +patch -p1 < ${CWD}/product.json.patch ./scripts/npm.sh install --arch=$BUILDARCH --unsafe-perm -node --max_old_space_size=1024 ./node_modules/.bin/gulp vscode-linux-${BUILDARCH}-min +node --max_old_space_size=2048 ./node_modules/.bin/gulp vscode-linux-${BUILDARCH} cd $TMP/VSCode-linux-$BUILDARCH +# https://github.com/Microsoft/vscode/issues/25935 +( cd resources/app + sed -i "s/\"date\".*/&\n\t\"commit\": \"${COMMIT}\",/" product.json +) + # Copy binary files -mkdir -p "${PKG}/opt/${PRGNAM}-${VERSION}" -cp -rvf * "${PKG}/opt/${PRGNAM}-${VERSION}" -R +mkdir -p "${PKG}/usr/share/code-oss" +cp -rvf * "${PKG}/usr/share/code-oss" -R # Link executable to usr/bin mkdir -p "${PKG}/usr/bin" -ln -s "/opt/${PRGNAM}-${VERSION}/bin/code-oss" "${PKG}"/usr/bin/code-oss +( cd $PKG/usr/bin + ln -s "../share/code-oss/bin/code-oss" +) # copy desktop shortcut mkdir -p "${PKG}/usr/share/applications" @@ -82,7 +90,7 @@ install -m644 "${CWD}/${PRGNAM}.desktop" "${PKG}/usr/share/applications/${PRGNAM # copy vscode icon mkdir -p "${PKG}/usr/share/icons" -install -m644 "${PKG}/opt/${PRGNAM}-${VERSION}/resources/app/resources/linux/code.png" \ +install -m644 "${PKG}/usr/share/code-oss/resources/app/resources/linux/code.png" \ "${PKG}/usr/share/icons/${PRGNAM}.png" # copy license and slackbuild |