summaryrefslogtreecommitdiff
path: root/utils/themeeditor/dmgbuild.cfg
diff options
context:
space:
mode:
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