flutterw is a shell script which downloads and executes the Flutter SDK with the exact version defined in itself. It can keep the flutter sdk version consistent for your co-workers and on the CI servers.
- keep the flutter sdk version consistent for your co-workers and on the CI servers.
- added extra commands like "./flutterw dart" can run a dart command, for example:
./flutterw dart --version
- support windows os, need run with git bash
- Config flutter version:
flutter_channel="stable"
flutter_version="1.9.1+hotfix.6"
./flutterw --version
https://github.com/LinXiaoTao/flutterw
flutterw 用来下载Flutter SDK,类似于gradlew。通过在脚本内配置特定版本号,使得同一工程的所有开发者或CI服务器(例如Jenkins)使用Flutter的版本一致。
- 保证所有开发者或CI服务器(例如Jenkins)使用Flutter的版本一致
- 添加了一些额外的常用命令,如 ./flutterw dart 可以直接运行dart命令:
./flutterw dart --version
- 支持windows系统,需要在 git bash 环境下运行
- 配置flutter版本号:
flutter_channel="stable"
flutter_version="1.9.1+hotfix.6"
./flutterw --version