diff options
Diffstat (limited to 'utils/themeeditor/dmgbuild.cfg')
-rw-r--r-- | utils/themeeditor/dmgbuild.cfg | 17 |
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 | |||
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 | |||