mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
3d983ad3a1
commit
bbd1056afb
3 changed files with 22 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<plist version="0.9">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>rbthemeeditor</string>
|
||||
<string>RockboxThemeEditor</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Theme Editor</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
|
|
|
|||
17
utils/themeeditor/dmgbuild.cfg
Normal file
17
utils/themeeditor/dmgbuild.cfg
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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'
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue