Compare commits

...

2 Commits

Author SHA1 Message Date
3b419d1e24 ci: 添加测试 Flutter 环境的批处理脚本
Some checks failed
Build Windows / ACT Windows Checkout Verification (push) Failing after 7h0m14s
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 19m38s
Build Windows / build (push) Failing after 7h0m32s
2025-11-07 08:12:46 -08:00
e3b9fea5b2 ci(workflow): 更新Flutter版本至3.35.5并移除旧版本检查步骤 2025-11-07 08:12:19 -08:00
2 changed files with 32 additions and 10 deletions

View File

@ -191,16 +191,8 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.0'
flutter-version: '3.35.5'
channel: 'stable'
- name: Checkout Flutter 3.24.5
shell: powershell
run: |
Set-Location $env:FLUTTER_ROOT
git fetch --tags
git checkout 3.24.5
flutter --version
- name: Enable Windows desktop
run: flutter config --enable-windows-desktop
@ -286,7 +278,14 @@ jobs:
assets/fonts
assets/translations
sparse-checkout-cone: true
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.35.5'
channel: 'stable'
- name: Enable Windows desktop
run: flutter config --enable-windows-desktop
- name: 🔍 Verify jq Installation (ACT)
shell: powershell
run: |

23
test_flutter.bat Normal file
View File

@ -0,0 +1,23 @@
@echo off
REM 测试 Flutter 安装和版本
REM 设置 Flutter 路径(假设已安装,如果未安装需手动设置)
set FLUTTER_ROOT=C:\flutter REM 替换为您的 Flutter 安装路径
REM 添加 Flutter 到 PATH
set PATH=%FLUTTER_ROOT%\bin;%PATH%
REM 检查 Flutter 版本
flutter --version
REM 如果需要,升级到指定版本
REM flutter upgrade --force
REM 启用 Windows desktop
flutter config --enable-windows-desktop
REM 获取依赖(假设在项目目录中运行)
flutter pub get
REM 暂停以查看输出
pause