def update_bundle_info(bundle_path, version, repo):
info_plist_path = os.path.join(bundle_path, 'Contents', 'Info.plist')
info_plist = plistlib.readPlist(info_plist_path)
info_plist['CFBundleVersion'] = version
info_plist['LBDescription']['LBDownloadURL'] = expand_url_template(
'https://github.com/%s/releases/download/%s/%s', repo,
tag_for_version(version), archive_dir_name(bundle_path, version)[1])
plistlib.writePlist(info_plist, info_plist_path)
评论列表
文章目录