mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-16 08:32:36 -05:00
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:
parent
35bdfd5ec5
commit
b2749d0f77
1 changed files with 27 additions and 0 deletions
|
|
@ -269,6 +269,33 @@ unix {
|
||||||
INSTALLS += target
|
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.
|
# source files are separate.
|
||||||
include(rbutilqt.pri)
|
include(rbutilqt.pri)
|
||||||
include(quazip/quazip.pri)
|
include(quazip/quazip.pri)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue