diff options
author | Janek Bevendorff <janek@jbev.net> | 2017-01-23 03:06:31 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2017-01-25 15:22:23 +0300 |
commit | 0456815bd5cdcbd5c86375333b97fb81ed4cfee5 (patch) | |
tree | 53989aa286b9890f111a2588a9fd062ac83a2c5a /AppImage-Recipe.sh | |
parent | 1c12cd6b9e3159999098ca3d4e765104bb4e19f1 (diff) |
Fix AppImage not launching on all platforms
Diffstat (limited to 'AppImage-Recipe.sh')
-rwxr-xr-x | AppImage-Recipe.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/AppImage-Recipe.sh b/AppImage-Recipe.sh index 322b5464f..d9cbd5651 100755 --- a/AppImage-Recipe.sh +++ b/AppImage-Recipe.sh @@ -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 |