Skip to content

Commit 7ab57a7

Browse files
authored
Deploy static 7z instead
1 parent 5c45295 commit 7ab57a7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

get-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "Installing package dependencies..."
88
echo "---------------------------------------------------------------"
99
make-aur-package dwarfs-bin
1010
make-aur-package gearlever
11-
pacman -Syu --noconfirm coreutils binutils gawk 7zip
11+
pacman -Syu --noconfirm coreutils binutils gawk
1212

1313
echo "Installing debloated packages..."
1414
echo "---------------------------------------------------------------"

make-appimage.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ quick-sharun /usr/bin/gearlever \
2929
/usr/bin/awk \
3030
/usr/bin/cat \
3131
/usr/bin/readelf \
32-
/usr/bin/chmod \
33-
/usr/lib/7zip
32+
/usr/bin/chmod
3433
# bundling 'file' doesn't work due to Arch's upstream bug, so I'll skip it, so it will be used from the host if available
3534
# https://bbs.archlinux.org/viewtopic.php?pid=2274027#p2274027
3635
#
3736
# bundling 'uname' doesn't make sense, this should be done in Python directly, idk why's this used from the host (upstream is even worse in using less portable 'arch')
38-
37+
38+
# Bundle static 7zip, as stracing it through quick-sharun doesn't give desired results
39+
wget --retry-connrefused --tries=30 https://pkgs.pkgforge.dev/dl/bincache/x86_64-linux/7z/official/7z/raw.dl -O ./AppDir/bin/7z
40+
chmod +x ./AppDir/bin/7z
41+
3942
# Patch Gear Lever to use AppImage's directory
4043
sed -i '/^pkgdatadir/c\pkgdatadir = os.getenv("SHARUN_DIR", "/usr") + "/share/gearlever"' ./AppDir/bin/gearlever
4144
sed -i '/^localedir/c\localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"' ./AppDir/bin/gearlever

0 commit comments

Comments
 (0)