Fix AppImage not launching on all platforms

This commit is contained in:
Janek Bevendorff 2017-01-23 01:06:31 +01:00
parent 1c12cd6b9e
commit 0456815bd5
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -43,13 +43,23 @@ cd $APP.AppDir
cp -a ../../bin-release/* .
cp -a ./usr/local/* ./usr
rm -R ./usr/local
patch_strings_in_file /usr/local ./
patch_strings_in_file /usr/local ././
patch_strings_in_file /usr ./
# bundle Qt platform plugins
QXCB_PLUGIN="$(find /usr/lib -name 'libqxcb.so' 2> /dev/null)"
QT_PLUGIN_PATH="$(dirname $(dirname $QXCB_PLUGIN))"
mkdir -p "./${QT_PLUGIN_PATH}/platforms"
cp "$QXCB_PLUGIN" "./${QT_PLUGIN_PATH}/platforms/"
get_apprun
copy_deps
delete_blacklisted
# remove dbus and systemd libs as they are not blacklisted
find . -name libdbus-1.so.3 -exec rm {} \;
find . -name libsystemd.so.0 -exec rm {} \;
get_desktop
get_icon
get_desktopintegration $LOWERAPP
@ -58,7 +68,7 @@ GLIBC_NEEDED=$(glibc_needed)
cd ..
generate_appimage
generate_type2_appimage
mv ../out/*.AppImage ..
rmdir ../out > /dev/null 2>&1