Skip to content

Commit de932a6

Browse files
authored
Merge pull request #5 from pkgforge-dev/try-bundling-7z-and-file
Bundle static `7z` and `file`
2 parents 3b505c3 + 07ed70f commit de932a6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
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: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ quick-sharun /usr/bin/gearlever \
3030
/usr/bin/cat \
3131
/usr/bin/readelf \
3232
/usr/bin/chmod
33-
# 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
34-
# https://bbs.archlinux.org/viewtopic.php?pid=2274027#p2274027
35-
#
36-
# 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')
37-
# bundling '7zip' doesn't work for extracting AppImages, but simple squashfs, dwarfs and AppImage extract works, so idk why this is used at all, anyway, this will get used from the host if available
38-
33+
34+
# Bundle static 7zip and file, as stracing it through quick-sharun doesn't give desired results
35+
wget --retry-connrefused --tries=30 https://pkgs.pkgforge.dev/dl/bincache/x86_64-linux/7z/official/7z/raw.dl -O ./AppDir/bin/7z
36+
chmod +x ./AppDir/bin/7z
37+
wget --retry-connrefused --tries=30 https://pkgs.pkgforge.dev/dl/pkgcache/x86_64-linux/file/appimage/ppkg/stable/file/raw.dl -O ./AppDir/bin/file
38+
chmod +x ./AppDir/bin/file
39+
3940
# Patch Gear Lever to use AppImage's directory
4041
sed -i '/^pkgdatadir/c\pkgdatadir = os.getenv("SHARUN_DIR", "/usr") + "/share/gearlever"' ./AppDir/bin/gearlever
4142
sed -i '/^localedir/c\localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"' ./AppDir/bin/gearlever

0 commit comments

Comments
 (0)