upload.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:LBHue 作者: nriley 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号