diff options
author | Janek Bevendorff <janek@jbev.net> | 2017-02-06 21:52:21 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2017-02-06 23:13:24 +0300 |
commit | f7e9f856687a80ca9517aabf375201d22d1f3014 (patch) | |
tree | 3bb0cf4c9a22ea3aef4d614f2c3afa2b3e742b98 /AppImage-Recipe.sh | |
parent | e31638d3dda560a2f08ba73e5669bf254d6c84ca (diff) |
Install Qt 5.8 inside Docker container
Diffstat (limited to 'AppImage-Recipe.sh')
-rwxr-xr-x | AppImage-Recipe.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/AppImage-Recipe.sh b/AppImage-Recipe.sh index 2ed3ae93b..dc30cb696 100755 --- a/AppImage-Recipe.sh +++ b/AppImage-Recipe.sh @@ -39,19 +39,27 @@ mkdir -p $APP.AppDir wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh . ./functions.sh +LIB_DIR=./usr/lib +if [ -d ./usr/lib/x86_64-linux-gnu ]; then + LIB_DIR=./usr/lib/x86_64-linux-gnu +fi + cd $APP.AppDir cp -a ../../bin-release/* . cp -a ./usr/local/* ./usr rm -R ./usr/local +rmdir ./opt 2> /dev/null patch_strings_in_file /usr/local ././ patch_strings_in_file /usr ./ # bundle Qt platform plugins and themes QXCB_PLUGIN="$(find /usr/lib -name 'libqxcb.so' 2> /dev/null)" +if [ "$QXCB_PLUGIN" == "" ]; then + QXCB_PLUGIN="$(find /opt/qt*/plugins -name 'libqxcb.so' 2> /dev/null)" +fi QT_PLUGIN_PATH="$(dirname $(dirname $QXCB_PLUGIN))" -mkdir -p "./${QT_PLUGIN_PATH}/platforms" -cp "$QXCB_PLUGIN" "./${QT_PLUGIN_PATH}/platforms/" -cp -a "${QT_PLUGIN_PATH}/platformthemes" "./${QT_PLUGIN_PATH}" +mkdir -p ".${QT_PLUGIN_PATH}/platforms" +cp "$QXCB_PLUGIN" ".${QT_PLUGIN_PATH}/platforms/" get_apprun copy_deps @@ -66,6 +74,8 @@ get_icon cat << EOF > ./usr/bin/keepassxc_env #!/usr/bin/env bash #export QT_QPA_PLATFORMTHEME=gtk2 +export LD_LIBRARY_PATH="../opt/qt58/lib:\${LD_LIBRARY_PATH}" +export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}" exec keepassxc "\$@" EOF chmod +x ./usr/bin/keepassxc_env |