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
This commit is contained in:
Dominik Riebeling 2020-06-19 19:47:41 +02:00
parent 35bdfd5ec5
commit b2749d0f77

View file

@ -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)