Ideployusageprebuild toolsidepoly.py
Replace some files and fields before build
Application Scenarios
- Multi-Channel Build
- Different packages show different icon or splash
Configuration file Ci.yml
replace_from_pics:需要替换的文件路径集合 replace_to_pics:需要被替换的文件路径集合template_source_files:需要替换的文本文件路径集合,需要被替换的内容使用 {{replace_content}}表示,例如 {{id}}template_target_files:需要被替换的文本文件路径集合 定义一个replace_content,例如 replace_content: Hello Yaml
Run
python idepoly.py (默认加载ci.yml)python idepoly.py xx.yml (自定义的yml,格式参考ci.yml)
Afterbuild toolsfirupload.py
Used to upload to fir after packaging
Application Scenarios
打包好的x.ipa 或者 xx.apk 需要给QA进行测试,可以通过fir进行分发
Install
sudo easy_install clint sudo easy_install requests sudo easy_install requests_toolbelt
Config.yml
appid: 应用id (android: applicationId, ios:bundleId)token: fir 提供的 tokenfilepath: xx.ipa/xx.apk 的路径type: ios/android
Run
python firupload.py
Blog:beiliubei
Githup:https://github.com/beiliubei/ideploy
Mobile development Some packaged scripts