From dc99315830bd874fa978b8fd83e9e2ed437a52b7 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 23 Nov 2021 16:50:32 +0100 Subject: [PATCH] Fix setting of `SYSTEMLIBDIR` in the appimage creation script. If it is the first time the script is run, $APPDIR doesn't exist, so, by definition, `$APPDIR/lib` doesn't exists neither. We must check the library dir in `$INSTALLDIR` which is the "source" directory for script. --- scripts/create_kiwix-desktop_appImage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_kiwix-desktop_appImage.sh b/scripts/create_kiwix-desktop_appImage.sh index 3a83e37..28f973f 100755 --- a/scripts/create_kiwix-desktop_appImage.sh +++ b/scripts/create_kiwix-desktop_appImage.sh @@ -7,7 +7,7 @@ SOURCEDIR=${2:-$PWD/SOURCE/kiwix-desktop} APPDIR=${3:-$PWD/AppDir} SYSTEMLIBDIR=lib/x86_64-linux-gnu -if [ ! -e "$APPDIR/lib" ] ; then +if [ ! -e "$INSTALLDIR/lib" ] ; then SYSTEMLIBDIR=lib64 fi