From 318e42be26dbae67618eaddf2b3e9bd59195b6ba Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 15 Dec 2021 21:11:41 +0100 Subject: [PATCH] build: Exclude libstdc++, libc++ and ld-linux from AppImage. Search libimhex and builtin plugins for dependencies --- dist/AppImage/package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/AppImage/package.sh b/dist/AppImage/package.sh index eb86ef6ae..e226a0817 100755 --- a/dist/AppImage/package.sh +++ b/dist/AppImage/package.sh @@ -39,7 +39,9 @@ mv ${BUILDDIR}/ImHex.AppDir/AppRun-x86_64 ${APPDIR}/AppRun chmod a+x ${BUILDDIR}/ImHex.AppDir/AppRun ## Add all dependencies -ldd ${BUILDDIR}/imhex | awk '/ => /{print $3}' | awk '!/(libc|libdl|libpthread|libselinux)/' | xargs -I '{}' cp '{}' ${APPDIR}/usr/lib +ldd ${BUILDDIR}/imhex | awk '/ => /{print $3}' | awk '!/(libc|libstdc++|libc++|libdl|libpthread|libselinux|ld-linux)/' | xargs -I '{}' cp '{}' ${APPDIR}/usr/lib +ldd ${BUILDDIR}/plugins/builtin/builtin.hexplug | awk '/ => /{print $3}' | awk '!/(libc|libstdc++|libc++|libdl|libpthread|libselinux|ld-linux)/' | xargs -I '{}' cp '{}' ${APPDIR}/usr/lib +ldd ${BUILDDIR}/plugins/libimhex/libimhex.so | awk '/ => /{print $3}' | awk '!/(libc|libstdc++|libc++|libdl|libpthread|libselinux|ld-linux)/' | xargs -I '{}' cp '{}' ${APPDIR}/usr/lib # Package it up as described here: # https://github.com/AppImage/AppImageKit#appimagetool-usage