Skip to content

Instantly share code, notes, and snippets.

Created December 10, 2017 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2deec6b292c69099e2756d1b1d0d10a0 to your computer and use it in GitHub Desktop.
Save anonymous/2deec6b292c69099e2756d1b1d0d10a0 to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index 310acd0..8e41f38 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,12 +8,12 @@
pkgname=visual-studio-code-git
pkgdesc='Visual Studio Code for Linux, Open Source version from git'
-pkgver=1.1.0.insider.r16716.g37c73f0c71
+pkgver=1.16.0.r4189.g6e71921951
pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
url='https://code.visualstudio.com/'
license=('MIT')
-makedepends=('npm' 'nodejs>=6.8.0' 'gulp' 'python2' 'git')
+makedepends=('npm' 'yarn' 'nodejs>=6.8.0' 'gulp' 'python2' 'git')
depends=('gtk2' 'gconf' 'libnotify' 'libxss' 'libxtst' 'libxkbfile' 'nss'
'alsa-lib')
conflicts=('vscode-oss' 'visual-studio-code-oss')
@@ -68,7 +68,7 @@ prepare() {
# npm.sh wrapper puts things in the user's home directory...
# To avoid that, we perform its environment setup manually instead
-npm_wrap() {
+yarn_wrap() {
(
ROOT="${srcdir}/vscode"
ELECTRON_VERSION=$(
@@ -84,7 +84,7 @@ npm_wrap() {
npm_config_target=$ELECTRON_VERSION \
npm_config_runtime=electron \
HOME=$ELECTRON_GYP_HOME \
- npm $*
+ yarn $*
)
}
@@ -93,15 +93,14 @@ build() {
# The provided shrinkwrap file doesn't work correctly with npm 5.x
# Therefore, we install an older version and use that for the build
- ( cd "${srcdir}" && /usr/bin/npm install 'npm@4.6.1' )
PATH="${srcdir}/node_modules/.bin":$PATH
- npm_wrap install --arch=${_vscode_arch}
+ yarn_wrap --arch=${_vscode_arch}
# The default memory limit may be too low for current versions of node
# to successfully build vscode. Uncomment this to set it to 2GB, or
# change it if this number still doesn't work for your system.
- #mem_limit="--max_old_space_size=2048"
+ mem_limit="--max_old_space_size=2048"
/usr/bin/node $mem_limit /usr/bin/gulp vscode-linux-${_vscode_arch}
# Patch the startup script to know where the app is installed, rather
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment