get creator code from plist if available, instead of overriding with default

This commit is contained in:
Just van Rossum 2002-11-24 01:23:45 +00:00
parent b8829b49b2
commit e6b49025c1

View file

@ -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):