From 905522b8f018973e0acedf1aaeb1bec1f2303825 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:36:51 -0400 Subject: [PATCH] Update gimp-appimage.sh --- gimp-appimage.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gimp-appimage.sh b/gimp-appimage.sh index 9088a00..326c446 100644 --- a/gimp-appimage.sh +++ b/gimp-appimage.sh @@ -102,20 +102,19 @@ find ./shared/lib/*/* -type f -name '*.so*' -exec ldd {} \; \ # sharun the gimp plugins echo "Sharunning the gimp plugins..." -mkdir -p ./shared/lib/gimp/2.0/plug-ins/shared/bin -cp ./sharun ./shared/lib/gimp/2.0/plug-ins -( cd ./shared/lib/gimp/2.0/plug-ins - for plugin in ./*/*; do +mkdir -p ./shared/lib/gimp/2.0/shared/bin +cp ./sharun ./shared/lib/gimp/2.0 +( cd ./shared/lib/gimp/2.0 + for plugin in ./plug-ins/*/*; do if file "$plugin" | grep -i 'elf.*executable'; then - mv "$plugin" ./shared/bin - ln -s ../sharun "$plugin" + mv "$plugin" ./shared/bin && ln -s ../../sharun "$plugin" echo "Sharan $plugin" else echo "$plugin is not a binary, skipping..." fi done ) -ln -s ../../../../ ./shared/lib/gimp/2.0/plug-ins/shared/lib +ln -s ../../../ ./shared/lib/gimp/2.0/shared/lib ./sharun -g # MAKE APPIAMGE WITH FUSE3 COMPATIBLE APPIMAGETOOL