mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
get creator code from plist if available, instead of overriding with default
This commit is contained in:
parent
b8829b49b2
commit
e6b49025c1
1 changed files with 6 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class BundleBuilder(Defaults):
|
|||
# The type of the bundle.
|
||||
type = "APPL"
|
||||
# The creator code of the bundle.
|
||||
creator = "????"
|
||||
creator = None
|
||||
|
||||
# List of files that have to be copied to <bundle>/Contents/Resources.
|
||||
resources = []
|
||||
|
|
@ -121,6 +121,11 @@ class BundleBuilder(Defaults):
|
|||
plist = self.plist
|
||||
plist.CFBundleName = self.name
|
||||
plist.CFBundlePackageType = self.type
|
||||
if self.creator is None:
|
||||
if hasattr(plist, "CFBundleSignature"):
|
||||
self.creator = plist.CFBundleSignature
|
||||
else:
|
||||
self.creator = "????"
|
||||
plist.CFBundleSignature = self.creator
|
||||
|
||||
def build(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue