From 2dcdddf8e86136cf19c36aab5b2f762ea91313b8 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Mon, 14 Dec 2020 14:38:31 +0100 Subject: [PATCH] Fix library search on CentOS 7 i386 --- ci/build-appdir.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build-appdir.sh b/ci/build-appdir.sh index 951963d..4be7c97 100755 --- a/ci/build-appdir.sh +++ b/ci/build-appdir.sh @@ -61,7 +61,7 @@ if [ -d /deps/ ]; then if [ "$ARCH" == "x86_64" ]; then cp "$(ldconfig -p | grep libffi.so.6 | grep x86-64 | cut -d'>' -f2 | tr -d ' ')" "$appimagetool_appdir"/usr/lib/ elif [ "$ARCH" == "i686" ]; then - cp "$(ldconfig -p | grep libffi.so.6 | grep i386 | cut -d'>' -f2 | tr -d ' ')" "$appimagetool_appdir"/usr/lib/ + cp "$(ldconfig -p | grep libffi.so.6 | head -n1 | cut -d'>' -f2 | tr -d ' ')" "$appimagetool_appdir"/usr/lib/ elif [ "$ARCH" == "armhf" ]; then cp "$(ldconfig -p | grep libffi.so.6 | grep arm | grep hf | cut -d'>' -f2 | tr -d ' ')" "$appimagetool_appdir"/usr/lib/ elif [ "$ARCH" == "aarch64" ]; then -- 2.11.4.GIT