Verified Commit 11c1c986 authored by Linus Jahn's avatar Linus Jahn 🍙

appimage: Fix portable Qt installations

parent a3f510bd
Pipeline #211 failed with stage
in 4 minutes and 37 seconds
......@@ -8,6 +8,7 @@ misc/android/res/mipmap-*
3rdparty/openssl
3rdparty/qxmpp
3rdparty/linuxdeployqt
################### AppImage #################
AppDir/
......
#!/bin/bash
#!/bin/bash -e
# NOTE: To use this script, you need to set $QT_LINUX to your Qt for Linux installation
......@@ -124,9 +124,20 @@ echo "*****************************************"
export LD_LIBRARY_PATH=$QT_LINUX/lib/:$KIRIGAMI_BUILD/lib:$LD_LIBRARY_PATH
export PATH=$QT_LINUX/bin/:$PATH
$KAIDAN_SOURCES/3rdparty/linuxdeployqt/squashfs-root/AppRun \
$KAIDAN_SOURCES/AppDir/usr/share/applications/kaidan.desktop \
-qmldir=$KAIDAN_SOURCES/src/qml/ \
-qmlimport=$(find $KIRIGAMI_BUILD -type d -name qml) \
-appimage -no-copy-copyright-files
# set qmake binary when using portable Qt; linuxdeployqt will find it on its
# own on global installs
if [ -f $QT_LINUX/bin/qmake ]; then
$KAIDAN_SOURCES/3rdparty/linuxdeployqt/squashfs-root/AppRun \
$KAIDAN_SOURCES/AppDir/usr/share/applications/kaidan.desktop \
-qmake=$QMAKE_BINARY \
-qmldir=$KAIDAN_SOURCES/src/qml/ \
-qmlimport=$KIRIGAMI_BUILD/lib/qml/ \
-appimage -no-copy-copyright-files
else
$KAIDAN_SOURCES/3rdparty/linuxdeployqt/squashfs-root/AppRun \
$KAIDAN_SOURCES/AppDir/usr/share/applications/kaidan.desktop \
-qmldir=$KAIDAN_SOURCES/src/qml/ \
-qmlimport=$KIRIGAMI_BUILD/lib/qml/ \
-appimage -no-copy-copyright-files
fi
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment