rockbox/utils/themeeditor/dmgbuild.cfg
Dominik Riebeling bbd1056afb 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
2021-12-28 19:53:54 +01:00

17 lines
466 B
INI

# Configuration for creating a dmg with dmgbuild
# (https://github.com/al45tair/dmgbuild)
# Requires at least Python 3.4
import os
import plistlib
_appbundle = defines['appbundle']
_plfile = open(os.path.join(_appbundle, 'Contents/Info.plist'))
_pldata = _plfile.read().encode()
_plist = plistlib.loads(_pldata)
_iconfile = os.path.join(_appbundle, 'Contents/Resources', _plist['CFBundleIconFile'])
files = [ _appbundle ]
icon = _iconfile
background = '#c6d6f5'