def create_plist(self):
"""Create the Contents/Info.plist file"""
import plistlib
contents = {
'CFBundleName': 'BigBrotherBot (B3) %s' % b3_version,
'CFBundleGetInfoString': b3_version,
'CFBundleShortVersionString': b3_version,
'CFBundleVersion': b3_version,
'CFBundlePackageType': 'APPL',
'CFBundleIconFile': 'icon.icns',
'CFBundleIdentifier': 'net.bigbrotherbot.www',
'CFBundleInfoDictionaryVersion': '6.0',
'CFBundleDevelopmentRegion': 'English',
'CFBundleSpokenName': 'Big Brother Bot (B3)',
'CFBundleExecutable': self.bundle_executable
}
plist = open(os.path.join(self.contentsDir, 'Info.plist'), 'wb')
plistlib.writePlist(contents, plist)
plist.close()
评论列表
文章目录