Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging /
Packages / code
Commits:
08b77e6b by E at 2025-05-18T12:25:37+02:00
Replace zipped electron with an empty zip archive
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -114,13 +114,13 @@ prepare() {
patch -p1 -i "$srcdir/clipath.patch"
- # The build process wants a zipped electron, let's construct one from system
electron and put it in cache.
+ # Put a fake of zipped electron required by the build process.
local _hash=$(echo -n
"https://github.com/electron/electron/releases/download/v$_electronver" |
sha256sum | cut -d ' ' -f 1)
export XDG_CACHE_HOME="$srcdir" # Don't let our manually created electron
zip appear in users' cache dir
local _cache_dir="$XDG_CACHE_HOME/electron/$_hash"
mkdir -p "$_cache_dir"
local _electron_zip="electron-v$_electronver-linux-$_electron_arch.zip"
- cd "/usr/lib/$_electron" && zip -r "$_cache_dir/$_electron_zip" . && cd -
+ zip -q "$_cache_dir/$_electron_zip" . -i .
echo "$(sha256sum "$_cache_dir/$_electron_zip" | cut -d " " -f 1)
*$_electron_zip" > build/checksums/electron.txt
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/commit/08b77e6b1e8c4c84c0d6acfb2f0af21aa4b56389
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/commit/08b77e6b1e8c4c84c0d6acfb2f0af21aa4b56389
You're receiving this email because of your account on gitlab.archlinux.org.