mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
deploy-ng: add icon support for macOS (#468)
This commit is contained in:
parent
f708402760
commit
d3c9199d9f
9
direct/src/dist/commands.py
vendored
9
direct/src/dist/commands.py
vendored
@ -506,6 +506,15 @@ class build_apps(setuptools.Command):
|
||||
'CFBundleSignature': '', #TODO
|
||||
'CFBundleExecutable': self.macos_main_app,
|
||||
}
|
||||
|
||||
icon = self.icon_objects.get(
|
||||
self.macos_main_app,
|
||||
self.icon_objects.get('*', None)
|
||||
)
|
||||
if icon is not None:
|
||||
plist['CFBundleIconFile'] = 'iconfile'
|
||||
icon.makeICNS(os.path.join(resdir, 'iconfile.icns'))
|
||||
|
||||
with open(os.path.join(contentsdir, 'Info.plist'), 'wb') as f:
|
||||
if hasattr(plistlib, 'dump'):
|
||||
plistlib.dump(plist, f)
|
||||
|
Loading…
x
Reference in New Issue
Block a user