summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutil.pro23
-rw-r--r--rbutil/rbutilqt/dmgbuild.cfg9
2 files changed, 32 insertions, 0 deletions
diff --git a/rbutil/rbutil.pro b/rbutil/rbutil.pro
index db3391d9a8..d5d9053d6d 100644
--- a/rbutil/rbutil.pro
+++ b/rbutil/rbutil.pro
@@ -57,4 +57,27 @@ unix:!macx {
57 QMAKE_EXTRA_TARGETS += appimage_dl appimage_prepare appimage 57 QMAKE_EXTRA_TARGETS += appimage_dl appimage_prepare appimage
58} 58}
59 59
60macx {
61 dmgbuild.commands = \
62 python3 -m venv venv; \
63 venv/bin/python -m pip install dmgbuild
64
65 appbundle_merge.commands = \
66 cp -pr rbutilqt/RockboxUtility.app .; \
67 cp ipodpatcher/ipodpatcher.app/Contents/MacOS/ipodpatcher RockboxUtility.app/Contents/MacOS; \
68 cp sansapatcher/sansapatcher.app/Contents/MacOS/sansapatcher RockboxUtility.app/Contents/MacOS
69
70 appbundle_deploy.commands = \
71 $$[QT_INSTALL_BINS]/macdeployqt RockboxUtility.app
72 appbundle_deploy.depends = appbundle_merge
73
74 dmg.commands = \
75 venv/bin/dmgbuild -s $$_PRO_FILE_PWD_/rbutilqt/dmgbuild.cfg \
76 -Dbasepath=$$_PRO_FILE_PWD_ \"Rockbox Utility\" RockboxUtility.dmg
77
78 dmg.depends = appbundle_merge appbundle_deploy dmgbuild
79
80 QMAKE_EXTRA_TARGETS += dmgbuild appbundle_merge appbundle_deploy dmg
81}
82
60 83
diff --git a/rbutil/rbutilqt/dmgbuild.cfg b/rbutil/rbutilqt/dmgbuild.cfg
new file mode 100644
index 0000000000..65d7b274a0
--- /dev/null
+++ b/rbutil/rbutilqt/dmgbuild.cfg
@@ -0,0 +1,9 @@
1# Configuration for creating a dmg with dmgbuild
2# (https://github.com/al45tair/dmgbuild)
3
4import os
5
6files = [ 'RockboxUtility.app' ]
7background = '#c6d6f5'
8icon = os.path.join(defines['basepath'], 'rbutilqt/icons/rbutilqt.icns')
9