diff options
Diffstat (limited to 'utils/themeeditor')
-rw-r--r-- | utils/themeeditor/Info.plist | 2 | ||||
-rw-r--r-- | utils/themeeditor/dmgbuild.cfg | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/utils/themeeditor/Info.plist b/utils/themeeditor/Info.plist index 95c5604604..22cf2ea1cf 100644 --- a/utils/themeeditor/Info.plist +++ b/utils/themeeditor/Info.plist | |||
@@ -3,7 +3,7 @@ | |||
3 | <plist version="0.9"> | 3 | <plist version="0.9"> |
4 | <dict> | 4 | <dict> |
5 | <key>CFBundleExecutable</key> | 5 | <key>CFBundleExecutable</key> |
6 | <string>rbthemeeditor</string> | 6 | <string>RockboxThemeEditor</string> |
7 | <key>CFBundleName</key> | 7 | <key>CFBundleName</key> |
8 | <string>Theme Editor</string> | 8 | <string>Theme Editor</string> |
9 | <key>CFBundleShortVersionString</key> | 9 | <key>CFBundleShortVersionString</key> |
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 | |||
5 | import os | ||
6 | import 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 | |||
14 | files = [ _appbundle ] | ||
15 | icon = _iconfile | ||
16 | background = '#c6d6f5' | ||
17 | |||