5
5
pkgname=code
6
6
pkgdesc=' The Open Source build of Visual Studio Code (vscode) editor'
7
7
# Important: Remember to check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites for target node version
8
- _electron=electron32
9
- pkgver=1.97 .2
10
- pkgrel=1
8
+ _electron=electron34
9
+ pkgver=1.100 .2
10
+ pkgrel=3
11
11
arch=(aarch64 x86_64)
12
12
url=' https://github.com/microsoft/vscode'
13
13
license=(' MIT' )
14
14
depends=($_electron ' libsecret' ' libx11' ' libxkbfile' ' ripgrep' )
15
15
optdepends=(' bash-completion: Bash completions'
16
16
' zsh-completions: ZSH completitons'
17
17
' x11-ssh-askpass: SSH authentication' )
18
- makedepends=(' gulp ' ' git ' ' npm' ' python ' ' nodejs-lts-iron ' ' desktop-file-utils' ' zip' ' jq' )
18
+ makedepends=(' git ' ' nodejs-lts-iron ' ' npm' ' pnpm ' ' python ' ' desktop-file-utils' ' zip' ' jq' )
19
19
provides=(' vscode' )
20
+ options=(' !strip' ' !debug' )
20
21
source=(vscode::" git+https://github.com/microsoft/vscode.git#tag=$pkgver "
21
22
' code.mjs'
22
23
' code.sh'
23
24
' product_json.diff'
24
25
' clipath.patch' )
25
- sha512sums=(' 25edb1985d3633f3b71a66e3f534d88ca20fd74aee43602d698307ef5e64cc8db770a5e02cf50078befefbf3208a1ef30e0242dc847d98c96ad5cf72b5ff8b1c '
26
+ sha512sums=(' 2694841afae736d7424d9f6ed4a9eebcccd1b6e167682c454da639b37a3442e62d405b009d28e138cc56de03b0711fedf6d28f5a2b0fdd105962421d9d563b6f '
26
27
' 793f9ff6306e3992ac89802d98110cba288ea1181a901467333293b7d76182ef9792c2a39ff49d9347a18a174b1f42bc58862091dff583f4146c2704eea28033'
27
- ' d2b3683085d98744ba4f7d8cb33fa38620b59220797917c3858cac6a0bf7962c2b7e293785a237f178e527384cc04bc19fe71d75f04fbf06be881263d4aa2b35 '
28
+ ' 937299c6cb6be2f8d25f7dbc95cf77423875c5f8353b8bd6cd7cc8e5603cbf8405b14dbf8bd615db2e3b36ed680fc8e1909410815f7f8587b7267a699e00ab37 '
28
29
' b1aa0d7c5b3e3e8ba1172822d75ea38e90efc431b270e0b4ca9e45bf9c0be0f60922c8618969ef071b5b6dbd9ac9f030294f1bf49bcc28c187b46d113dca63a7'
29
- ' 961b89334514aad68db4115f11b6e070240b1dd0567c4456c7b37a2dd6ae4be54965dbd5665cdc3b91c73d8f3269da3ba7d90ef634632ef6a252be1bfa7f967b ' )
30
+ ' e570b30cd470190aa56596913478d5fb8ba265a0f8c9d1408ea2118612cc69a360cc55e4523c3dc9c65f73e3dea53fc6620c97f6592fb9f86c3aca51ad3d9744 ' )
30
31
31
32
# Even though we don't officially support other archs, let's
32
33
# allow the user to use this PKGBUILD to compile the package
@@ -50,6 +51,10 @@ case "$CARCH" in
50
51
_vscode_arch=arm
51
52
_electron_arch=armv7l
52
53
;;
54
+ aarch64)
55
+ _vscode_arch=arm64
56
+ _electron_arch=arm64
57
+ ;;
53
58
riscv64)
54
59
_vscode_arch=riscv64
55
60
_electron_arch=riscv64
@@ -71,6 +76,9 @@ prepare() {
71
76
fi
72
77
_electronver=$( jq -r ' .packages[""].devDependencies.electron' package-lock.json)
73
78
79
+ # Add vsce-sign necessary for extensions' signature verification
80
+ pnpm add @vscode/vsce-sign @vscode/vsce-sign-linux-$_vscode_arch
81
+
74
82
# Change electron binary name to the target electron
75
83
sed -e " s|name=electron|name=$_electron |" \
76
84
-e ' /PKGBUILD/d' \
@@ -113,13 +121,13 @@ prepare() {
113
121
114
122
patch -p1 -i " $srcdir /clipath.patch"
115
123
116
- # The build process wants a zipped electron, let's construct one from system electron and put it in cache .
124
+ # Put a fake of zipped electron required by the build process .
117
125
local _hash=$( echo -n " https://github.com/electron/electron/releases/download/v$_electronver " | sha256sum | cut -d ' ' -f 1)
118
126
export XDG_CACHE_HOME=" $srcdir " # Don't let our manually created electron zip appear in users' cache dir
119
127
local _cache_dir=" $XDG_CACHE_HOME /electron/$_hash "
120
128
mkdir -p " $_cache_dir "
121
129
local _electron_zip=" electron-v$_electronver -linux-$_electron_arch .zip"
122
- cd " /usr/lib/ $_electron " && zip -r " $_cache_dir /$_electron_zip " . && cd -
130
+ zip -q " $_cache_dir /$_electron_zip " . -i .
123
131
echo " $( sha256sum " $_cache_dir /$_electron_zip " | cut -d " " -f 1) *$_electron_zip " > build/checksums/electron.txt
124
132
}
125
133
@@ -128,9 +136,9 @@ build() {
128
136
export ELECTRON_SKIP_BINARY_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
129
137
export XDG_CACHE_HOME=" $srcdir "
130
138
npm install --cpu=$_vscode_arch
131
- gulp --max_old_space_size=8192 \
139
+ npm run gulp \
132
140
--openssl-legacy-provider \
133
- vscode-linux-$_vscode_arch -min
141
+ vscode-linux-${ _vscode_arch} -min
134
142
}
135
143
136
144
package () {
0 commit comments