From ef2153611e26ee6e417cf39b3ec36b0c2b0ed100 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Sun, 3 Aug 2025 15:49:12 +1000 Subject: [PATCH] fix: use full shared object library (ldd) --- build_appimage.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build_appimage.sh b/build_appimage.sh index 2686a04..8d3e095 100755 --- a/build_appimage.sh +++ b/build_appimage.sh @@ -27,12 +27,10 @@ fi # install binaries in the appdir, then the libraries cp $target_dir/release/drop-app $appdir/usr/bin -for lib_name in $(readelf -d "$target_dir/release/drop-app" | grep NEEDED |cut -d'[' -f2 |tr -d ]); +for lib_name in $(ldd "$target_dir/release/drop-app" | grep '=>' | awk '{ print $(NF-1) }'); do echo $lib_name - ld_path=$(ldconfig -p | grep $lib_name | head -1 | awk '{ print $NF }') - echo $ld_path - sudo install -g 1000 -o 1000 -Dm755 "$(ls -L1 $ld_path)" $appdir/usr/lib + sudo install -g 1000 -o 1000 -Dm755 "$(ls -L1 $lib_name)" $appdir/usr/lib done wget -O $appimage_dir/appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$arch.AppImage