summaryrefslogtreecommitdiff
path: root/utils/themeeditor/dmgbuild.cfg
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-28 19:53:54 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-28 19:53:54 +0100
commitbbd1056afbf2f9e61fe2e8d7fe86ff6fe6b5cee0 (patch)
tree4fa19ce78e5702cdb35c281d35f7d654abcd347a /utils/themeeditor/dmgbuild.cfg
parent3d983ad3a1e931678b5ba512a153c3460a88d246 (diff)
downloadrockbox-bbd1056afbf2f9e61fe2e8d7fe86ff6fe6b5cee0.tar.gz
rockbox-bbd1056afbf2f9e61fe2e8d7fe86ff6fe6b5cee0.zip
themeeditor: Fix dmg deploy steps.
- Fix binary name in Info.plist. - Run dmgbuild as Python module, in some cases it isn't available directly. - Add missing dmgbuild configuration for themeeditor. Change-Id: I2db50959b88283f43e2203cf71b130cdb33103dd
Diffstat (limited to 'utils/themeeditor/dmgbuild.cfg')
-rw-r--r--utils/themeeditor/dmgbuild.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/themeeditor/dmgbuild.cfg b/utils/themeeditor/dmgbuild.cfg
new file mode 100644
index 0000000000..70d086c098
--- /dev/null
+++ b/utils/themeeditor/dmgbuild.cfg
@@ -0,0 +1,17 @@
1# Configuration for creating a dmg with dmgbuild
2# (https://github.com/al45tair/dmgbuild)
3# Requires at least Python 3.4
4
5import os
6import plistlib
7
8_appbundle = defines['appbundle']
9_plfile = open(os.path.join(_appbundle, 'Contents/Info.plist'))
10_pldata = _plfile.read().encode()
11_plist = plistlib.loads(_pldata)
12_iconfile = os.path.join(_appbundle, 'Contents/Resources', _plist['CFBundleIconFile'])
13
14files = [ _appbundle ]
15icon = _iconfile
16background = '#c6d6f5'
17