summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-06-19 19:47:41 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-06-20 12:20:21 +0200
commitb2749d0f77547d990e30a52d4a86c24b99e26387 (patch)
tree5cfaa373231c7b01c05215e669bdbfb337e27656
parent35bdfd5ec59d6a0ae61e97aee82194990409c51b (diff)
rbutil: Add extra build rule on Linux to create AppImage.
Build the "appimage" target to create an AppImage file from the binary. The needed linuxdeploy tools will be downloaded first. Change-Id: Ia1e8977ea7689fb547c5d1a6abe6448a94f1b1af
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro27
1 files changed, 27 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index fb7b9fcc5f..a845c3ca36 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -269,6 +269,33 @@ unix {
INSTALLS += target
}
+unix:!macx {
+ LINUXDEPLOYQTURL = https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
+ LINUXDEPLOYURL = https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
+
+ appimage_dl.commands = \
+ curl -C- -fLO $$LINUXDEPLOYQTURL -fLO $$LINUXDEPLOYURL ; \
+ chmod +x *.AppImage; \
+ touch appimage_dl
+
+ appimage_prepare.commands = \
+ mkdir -p AppImage/usr/bin; \
+ cp ${TARGET} AppImage/usr/bin
+ appimage_prepare.depends = ${TARGET} appimage_dl
+
+ appimage.commands = \
+ ./linuxdeploy-x86_64.AppImage \
+ --appdir AppImage \
+ --verbosity 2 --plugin qt --output appimage \
+ -e AppImage/usr/bin/${TARGET} \
+ -d $$_PRO_FILE_PWD_/RockboxUtility.desktop \
+ -i $$RBBASE_DIR/docs/logo/rockbox-clef.svg
+ appimage.depends = appimage_prepare
+
+ QMAKE_EXTRA_TARGETS += appimage_dl appimage_prepare appimage
+}
+
+
# source files are separate.
include(rbutilqt.pri)
include(quazip/quazip.pri)