2020-10-31 16:21:34 +00:00
|
|
|
# Configuration for creating a dmg with dmgbuild
|
|
|
|
# (https://github.com/al45tair/dmgbuild)
|
2021-12-26 20:48:19 +00:00
|
|
|
# Requires at least Python 3.4
|
2020-10-31 16:21:34 +00:00
|
|
|
|
|
|
|
import os
|
2021-12-26 20:48:19 +00:00
|
|
|
import plistlib
|
2020-10-31 16:21:34 +00:00
|
|
|
|
2021-12-23 10:12:31 +00:00
|
|
|
_appbundle = defines['appbundle']
|
2021-12-26 20:48:19 +00:00
|
|
|
_plfile = open(os.path.join(_appbundle, 'Contents/Info.plist'))
|
|
|
|
_pldata = _plfile.read().encode()
|
|
|
|
_plist = plistlib.loads(_pldata)
|
2021-12-23 10:12:31 +00:00
|
|
|
_iconfile = os.path.join(_appbundle, 'Contents/Resources', _plist['CFBundleIconFile'])
|
|
|
|
|
|
|
|
files = [ _appbundle ]
|
|
|
|
icon = _iconfile
|
2020-10-31 16:21:34 +00:00
|
|
|
background = '#c6d6f5'
|
|
|
|
|