mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
vscode: update to 1.31.0.
This commit is contained in:
parent
953e7becaf
commit
000159dbe9
4 changed files with 30 additions and 46 deletions
|
@ -1,2 +0,0 @@
|
||||||
To use always software rendering create the file
|
|
||||||
${HOME}/.config/Code - OSS/.libgl_always_software
|
|
|
@ -10,3 +10,24 @@ index 55f50b6f1c14..16b73343e6ea 100755
|
||||||
+ VSCODE_PATH="/usr/lib/@@NAME@@"
|
+ VSCODE_PATH="/usr/lib/@@NAME@@"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
diff --git a/resources/linux/code.desktop b/resources/linux/code.desktop
|
||||||
|
index dbc7818cecf3..eefe01f43397 100644
|
||||||
|
--- a/resources/linux/code.desktop
|
||||||
|
+++ b/resources/linux/code.desktop
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
Name=@@NAME_LONG@@
|
||||||
|
Comment=Code Editing. Redefined.
|
||||||
|
GenericName=Text Editor
|
||||||
|
-Exec=/usr/share/@@NAME@@/@@NAME@@ --unity-launch %F
|
||||||
|
+Exec=/usr/lib/@@NAME@@/@@NAME@@ --unity-launch %F
|
||||||
|
Icon=@@ICON@@
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=false
|
||||||
|
@@ -14,5 +14,5 @@ Keywords=vscode;
|
||||||
|
|
||||||
|
[Desktop Action new-empty-window]
|
||||||
|
Name=New Empty Window
|
||||||
|
-Exec=/usr/share/@@NAME@@/@@NAME@@ --new-window %F
|
||||||
|
+Exec=/usr/lib/@@NAME@@/@@NAME@@ --new-window %F
|
||||||
|
Icon=@@ICON@@
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
diff --git a/resources/linux/bin/code.sh b/resources/linux/bin/code.sh
|
|
||||||
index 55f50b6f1c14..f03839c66095 100755
|
|
||||||
--- a/resources/linux/bin/code.sh
|
|
||||||
+++ b/resources/linux/bin/code.sh
|
|
||||||
@@ -30,6 +30,10 @@ else
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
+if [ -e "${HOME}/.config/Code - OSS/.libgl_always_software" ]; then
|
|
||||||
+ export LIBGL_ALWAYS_SOFTWARE=1
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
ELECTRON="$VSCODE_PATH/@@NAME@@"
|
|
||||||
CLI="$VSCODE_PATH/resources/app/out/cli.js"
|
|
||||||
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
|
|
||||||
diff --git a/resources/linux/code.desktop b/resources/linux/code.desktop
|
|
||||||
index f93060d565bd..d511dd86489d 100644
|
|
||||||
--- a/resources/linux/code.desktop
|
|
||||||
+++ b/resources/linux/code.desktop
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
Name=@@NAME_LONG@@
|
|
||||||
Comment=Code Editing. Redefined.
|
|
||||||
GenericName=Text Editor
|
|
||||||
-Exec=/usr/share/@@NAME@@/@@NAME@@ --unity-launch %F
|
|
||||||
+Exec=/usr/bin/sh -c '[ -e "${HOME}/.config/Code - OSS/.libgl_always_software" ] && export LIBGL_ALWAYS_SOFTWARE=1; /usr/lib/@@NAME@@/@@NAME@@ --unity-launch %F'
|
|
||||||
Icon=@@ICON@@
|
|
||||||
Type=Application
|
|
||||||
StartupNotify=true
|
|
||||||
@@ -14,5 +14,5 @@ Keywords=vscode;
|
|
||||||
|
|
||||||
[Desktop Action new-empty-window]
|
|
||||||
Name=New Empty Window
|
|
||||||
-Exec=/usr/share/@@NAME@@/@@NAME@@ --new-window %F
|
|
||||||
+Exec=/usr/bin/sh -c '[ -e "${HOME}/.config/Code - OSS/.libgl_always_software" ] && export LIBGL_ALWAYS_SOFTWARE=1; /usr/lib/@@NAME@@/@@NAME@@ --new-window %F'
|
|
||||||
Icon=@@ICON@@
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'vscode'
|
# Template file for 'vscode'
|
||||||
pkgname=vscode
|
pkgname=vscode
|
||||||
version=1.30.2
|
version=1.31.0
|
||||||
revision=2
|
revision=1
|
||||||
hostmakedepends="pkg-config python nodejs-lts yarn"
|
hostmakedepends="pkg-config python nodejs-lts yarn"
|
||||||
makedepends="libxkbfile-devel libsecret-devel"
|
makedepends="libxkbfile-devel libsecret-devel"
|
||||||
depends="GConf libXtst libxkbfile nss dejavu-fonts-ttf"
|
depends="GConf libXtst libxkbfile nss dejavu-fonts-ttf"
|
||||||
|
@ -10,7 +10,7 @@ maintainer="shizonic <realtiaz@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://code.visualstudio.com/"
|
homepage="https://code.visualstudio.com/"
|
||||||
distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
|
distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
|
||||||
checksum=7bf1c9c3c2814146906a6e38188d2f3284e128929e27c2c2dd0bcd7c6422be5e
|
checksum=ac7d025b85519f4563eebd112d5deec48ac742b5dcfcff6c6fcfce36c01baeba
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
|
|
||||||
# Due to electron
|
# Due to electron
|
||||||
|
|
Loading…
Add table
Reference in a new issue