升级flutter版本
版本更新需要同时修改android和ios打包机
sdk下载地址:https://docs.flutter.cn/release/archive
android(ubuntu)
bash
#2026-01-10
$ cd /home/walleci/downloads
$ wget https://storage.flutter-io.cn/flutter_infra_release/releases/stable/linux/flutter_linux_3.35.7-stable.tar.xz
$ cd /home/walleci/env
$ mkdir flutter_3.35.7 && cd flutter_3.35.7
$ tar -xf /home/walleci/downloads/flutter_linux_3.35.7-stable.tar.xz
$ git config --global --add safe.directory /home/walleci/env/flutter_3.35.7/flutter #为了使工具能准确获取版本号
$ ./flutter/bin/flutter doctor #检查是否能够完整通过Androidios(mac)
ios的jenkins要用到jing存储的密钥信息
bash
1. 下载sdk文件
2. 双击打开
3. 将解压的文件夹拖动到 $HOME/walleci/flutter目录
4. 修改文件夹名称
# ~/Downloads
$ cd ~/Downloads
$ wget https://storage.flutter-io.cn/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.35.7-stable.zip
$ cd ~/walleci/flutter
$ unzip ~/Downloads/flutter_macos_arm64_3.35.7-stable.zip
#也可直接解压指定目录
$ unzip ~/Downloads/flutter_macos_3.24.3-stable.zip -d ~/walleci/flutter/flutter_3.24.3
$ mv flutter flutter_3.35.7
$ ./flutter_3.35.7/bin/flutter doctor
$ ./bin/flutter config --no-analytics
$ ./bin/flutter config --no-cli-animations