rockbox/utils/rbutilqt/dmgbuild.cfg
Dominik Riebeling 88a50ab104 rbutil: Change MacOS dmgbuild to use plistlib.
We're not dealing with binary plist files, to biplist is not the one we
want. Also, plistlib is part of Python.

Change-Id: I529516da0d6b04809a7c0d38b20c6f40900560f8
2021-12-26 21:59:19 +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'