11#! /bin/sh
22
3- set -eux
3+ set -eu
44
55ARCH=" $( uname -m) "
66VERSION=" $( cat ~ /version) "
7- SHARUN=" https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/quick-sharun.sh"
8- URUNTIME=" https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/uruntime2appimage.sh"
9- PHOTOGIMP=" https://github.com/Diolinux/PhotoGIMP/releases/latest/download/PhotoGIMP-linux.zip"
10-
7+ export ARCH VERSION
118export ADD_HOOKS=" self-updater.bg.hook"
129export STRACE_TIME=15
1310export DEPLOY_OPENGL=1
1411export DEPLOY_PYTHON=1
1512export DEPLOY_LOCALE=1
13+ export DEPLOY_SDL=1
1614export DEPLOY_LIBHEIF=1
1715export PYTHON_PACKAGES=PyGObject
1816export PYTHON_LEAVE_PIP=1
@@ -23,16 +21,15 @@ export OUTNAME=GIMP-"$VERSION"-anylinux-"$ARCH".AppImage
2321export OPTIMIZE_LAUNCH=1
2422
2523# ADD LIBRARIES
26- wget --retry-connrefused --tries=30 " $SHARUN " -O ./quick-sharun
27- chmod +x ./quick-sharun
28- ./quick-sharun \
24+ quick-sharun \
2925 /usr/bin/gimp* \
26+ /usr/lib/gimp/* \
27+ /usr/lib/gimp/* /* \
28+ /usr/lib/gimp/* /* /* \
3029 /usr/bin/gjs* \
3130 /usr/bin/gegl \
3231 /usr/lib/libgimp* \
33- /usr/lib/gimp/* /modules/* \
3432 /usr/lib/gtk-* /* /* /* \
35- /usr/lib/gvfs/* \
3633 /usr/lib/libcfitsio.so* \
3734 /usr/lib/libgthread-2.0.so* \
3835 /usr/lib/libjbig2dec* \
@@ -41,29 +38,18 @@ chmod +x ./quick-sharun
4138 /usr/lib/libgs.so* \
4239 /usr/lib/libgpm* \
4340 /usr/lib/libpaper* \
44- /usr/lib/libSDL* \
4541 /usr/lib/libXpm.so* \
4642 /usr/lib/libwmf* \
4743 /usr/lib/libudev.so* \
4844 /usr/lib/libaa.so* \
49- /usr/lib/libmng.so*
50-
51- cp -vr /usr/lib/locale ./AppDir/shared/lib
52- cp -vr /usr/share/pixmaps ./AppDir/share
53- cp -vr /etc/gimp ./AppDir/etc
54- cp -vr /usr/share/vala ./AppDir/share
55- cp -vr /usr/share/gir-1.0 ./AppDir/share
56- cp -rvn /usr/lib/gimp ./AppDir/shared/lib
57-
58- # sharun the gimp plugins
59- echo " Sharunning the gimp plugins..."
60- bins_to_find=" $( find ./AppDir/lib/gimp -exec file {} \; | grep -i ' elf.*executable' | awk -F' :' ' {print $1}' ) "
61- for plugin in $bins_to_find ; do
62- mv -v " $plugin " ./AppDir/shared/bin && ln -f ./AppDir/sharun " $plugin "
63- echo " Sharan $plugin "
64- done
45+ /usr/lib/libmng.so* \
46+ /usr/share/pixmaps \
47+ /etc/gimp \
48+ /usr/share/vala \
49+ /usr/share/gir-1.0
6550
6651# ADD PHOTOGIMP
52+ PHOTOGIMP=" https://github.com/Diolinux/PhotoGIMP/releases/latest/download/PhotoGIMP-linux.zip"
6753wget --retry-connrefused --tries=30 " $PHOTOGIMP " -O ./PhotoGIMP.zip
6854unzip ./PhotoGIMP.zip
6955rm -f ./PhotoGIMP.zip
@@ -86,9 +72,7 @@ sed -i -e 's|Exec=.*|Exec=env ENABLE_PHOTO_GIMP=1 gimp %U|g' \
8672sed -i ' s|StartupWMClass=.*|StartupWMClass=gimp|' ./AppDir/* .desktop
8773
8874# MAKE APPIMAGE WITH URUNTIME
89- wget --retry-connrefused --tries=30 " $URUNTIME " -O ./uruntime2appimage
90- chmod +x ./uruntime2appimage
91- ./uruntime2appimage
75+ quick-sharun --make-appimage
9276
9377UPINFO=" $( echo " $UPINFO " | sed ' s#.AppImage.zsync#*.AppBundle.zsync#g' ) "
9478wget -O ./pelf " https://github.com/xplshn/pelf/releases/latest/download/pelf_$ARCH "
0 commit comments