better_flutter_build
功能:
- 自动编译flutter项目
- 自动打包Android项目
- 自动打包iOS项目
- 自动上传到 fir.im
- 多进程并发
用法:
- 创建 env.py, 填入必须的参数
# fir.im 信息
# 官方文档 https://www.betaqr.com/docs/publish
api_token = ''
android_id = ''
ios_id = ''
# 本地 flutter 项目路径
git_dir = ''
# 本地 flutter 命令地址
flutter = ''
# 配置文件地址, 获取含有 release 字段的值, 并输出到日志中
env_path = ''
# 钉钉机器人webhook地址
ding_web_hook = 'https://oapi.dingtalk.com/robot/send?access_token=xxx'
- 使用pip添加以下依赖
pip3 install GitPython certifi chardet gitdb idna requests requests-toolbelt setuptools smmap urllib3
- 运行脚本, 几分钟后即上传成功
python3 main.py