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

This commit is contained in:
shanshanzhong 2025-11-07 08:12:46 -08:00
parent e3b9fea5b2
commit 3b419d1e24
2 changed files with 31 additions and 1 deletions

View File

@ -278,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