Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wangyng/better_flutter_build
build flutter and upload to fir.im
https://github.com/wangyng/better_flutter_build
Last synced: about 2 months ago
JSON representation
build flutter and upload to fir.im
- Host: GitHub
- URL: https://github.com/wangyng/better_flutter_build
- Owner: WangYng
- License: bsd-3-clause
- Created: 2021-04-22T03:54:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T02:33:13.000Z (8 months ago)
- Last Synced: 2024-05-21T03:27:07.653Z (8 months ago)
- Language: Python
- Size: 4.59 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# better_flutter_build
### 功能:
- [x] 自动编译flutter项目
- [x] 自动打包Android项目
- [x] 自动打包iOS项目
- [x] 自动上传到 fir.im
- [x] 多进程并发### 用法:
1. 创建 env.py, 填入必须的参数
```python3
# fir.im 信息
# 官方文档 https://www.betaqr.com/docs/publish
api_token = ''
android_id = ''
ios_id = ''# 本地 flutter 项目路径
git_dir = ''# 本地 flutter 命令地址
android_flutter = ''
ios_flutter = ''# 配置文件地址, 获取含有 release 字段的值, 并输出到日志中
env_path = ''# 钉钉机器人webhook地址
ding_web_hook = 'https://oapi.dingtalk.com/robot/send?access_token=xxx'
```2. 使用pip添加以下依赖
```terminal
pip3 install GitPython certifi chardet gitdb idna requests requests-toolbelt setuptools smmap urllib3
```
3. 运行脚本, 几分钟后即上传成功
```terminal
python3 main.py
```