def make_plist(self, version=None):
"""
?????????????Info.plist?????
"""
info = {
'CFBundleDisplayName': DISPLAY_NAME,
'CFBundleExecutable': EXECUTABLE_NAME,
'CFBundleIconFile': ICON_FILE_NAME,
'CFBundleIdentifier': self.bundle_identifier,
'CFBundleInfoDictionaryVersion': '6.0',
'CFBundleLocalizations': list(LOCALIZED_BUNDLE_NAMES.keys()),
'CFBundleName': self.bundle_name,
'CFBundlePackageType': 'APPL',
'CFBundleShortVersionString': '1',
'CFBundleSignature': '???',
'CFBundleVersion': '1',
'LSHasLocalizedDisplayName': True,
}
if version:
info['CFBundleShortVersionString'] = version
path = os.path.join(self.contents_dir, 'Info.plist')
plistlib.writePlist(info, path)
评论列表
文章目录