def create_plist(self):
"""Create the Contents/Info.plist file"""
# Use custom plist if supplied, otherwise create a simple default.
if self.custom_info_plist:
contents = plistlib.readPlist(self.custom_info_plist)
else:
contents = {
'CFBundleIconFile': 'icon.icns',
'CFBundleDevelopmentRegion': 'English',
}
# Ensure CFBundleExecutable is set correctly
contents['CFBundleExecutable'] = self.bundle_executable
plist = open(os.path.join(self.contentsDir, 'Info.plist'), 'wb')
plistlib.writePlist(contents, plist)
plist.close()
评论列表
文章目录