1 Star 0 Fork 1

ios_shen / AliyunVideoSDKBasic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
publish.py 799 Bytes
一键复制 编辑 原始数据 按行查看 历史
jiangpaifeng 提交于 2021-12-03 21:01 . release
#!/usr/bin/env python
import os,sys
spec = 'AliyunVideoSDKBasic.podspec'
if len(sys.argv) == 0:
print('please input version')
else:
version = sys.argv[1]
with open(spec) as f:
lines = f.readlines()
for i in range(len(lines)):
if lines[i].find('s.version =') != -1:
lines[i] = " s.version = \"" + version + "\"" + "\n"
f.close
with open(spec,'w+') as wf:
wf.writelines(lines)
wf.close
tag = "git tag -a "+version+" -m '"+version+"'"
trunk = 'pod trunk push ' + spec + ' --allow-warnings --verbose --skip-import-validation'
os.system('git add .')
os.system('git commit -m release')
os.system('git push')
os.system(tag)
os.system('git push --tags')
os.system(trunk)
Objective-C
1
https://gitee.com/ios_shen/AliyunVideoSDKBasic.git
git@gitee.com:ios_shen/AliyunVideoSDKBasic.git
ios_shen
AliyunVideoSDKBasic
AliyunVideoSDKBasic
master

搜索帮助