iOS自動(dòng)化打包腳本.地址:https://github.com/hades0918/ipapy
iOS項(xiàng)目自動(dòng)打包腳本
1.腳本自動(dòng)打包
2.上傳到fir.im
3.發(fā)送郵件給測(cè)試人員
1.python 2.7
2.xcode
3.fir.im指令
1.安裝xcode
2.安裝fir.im的指令,安裝方法見(jiàn)https://github.com/FIRHQ/fir-cli/blob/master/README.md
3.配置相關(guān)信息 python ipa.py -c 或者 python ipa.py --config
targetName:工程的名稱(chēng),如:我的工程是BossZP.xcodeproj,所以我的targetName就是BossZP
gitPath:工程的git地址,如:我的git地址是http://git.xxx.org/xxxxxx/xxxxxx.git
certificateName:證書(shū)名稱(chēng),如:我的是iPhone Developer: YANG YU (7XC3UZCAZM)
firToken:在fir.im上創(chuàng)建應(yīng)用后的token,如:我的是2ac8uf3j9z3ur98d7gxxxxxxxx
下面的是郵件設(shè)置:
emailFromUser:我的郵箱,如:xxxxxx@163.com
emailToUser:測(cè)試人員的郵箱,如xxxxxx@163.com
emailPassword:我的郵箱的密碼
emailHost:郵箱的host,可以去郵箱網(wǎng)頁(yè)查看,如:我的是smtp.163.com
4.配置完信息,可以通過(guò) --help 或者 -h 查看基本的使用方法
-h, --help 查看幫助信息
-c, --config 配置基本信息
-s, --showTags 顯示git上所有的版本
-t TAG, --tag=TAG 設(shè)置打包時(shí)的版本
● 如果你不喜歡我把放在Documents下面,你可以把腳本的第28行改成你喜歡的目錄,如:target_path = "/Users/yuyang/clone/BossZP"
python ipa.py -h
python ipa.py --help
python ipa.py -c
python ipa.py --config
python ipa.py -s
python ipa.py --showTags
python ipa.py -t v3.0 (打包時(shí)候這樣使用,后面的v3.0參數(shù)可以使用python ipa.py -s獲取)
python ipa.py -tag v3.0 (打包時(shí)候這樣使用,后面的v3.0參數(shù)可以使用python ipa.py -s獲取)
python ipa.py (tag不寫(xiě),默認(rèn)是master)
歡迎使用,謝謝!
//順便打個(gè)廣告,歡迎使用我們的軟件"Boss直聘"找工作!