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.
This commit is contained in:
Matthieu Gautier 2021-11-23 16:50:32 +01:00
parent 7c813c4002
commit dc99315830
1 changed files with 1 additions and 1 deletions

View File

@ -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