Files
Frontend Developer 9ca99a1fe1 GC-UI:前后端分离,前端改用 Flutter(Windows/macOS)
- 新增 GC-UI/:backend(.NET 8 本地 HTTP API + 模型窗口宿主)与 frontend(Flutter 桌面应用)
- 前端一套 Dart 代码 + windows/macos 两个原生 runner,共享全部界面逻辑
- 「关于」页新增「源码语言:C#」「前端:Flutter」两行,字段由 /api/about 下发
- 截图脚本覆盖首页/下载/设置/关于/外壳,需要真实后端时用 runAsync 等待请求
- README 补充平台选型理由、接口列表与截图用法
2026-11-17 13:48:17 +00:00

30 lines
705 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
REM 构建 GC-UI 前端(Windows 上运行;macOS 请用 build-ui.sh)。
REM
REM GC-UI\build-ui.cmd
setlocal
set ROOT=%~dp0..
set FRONTEND=%ROOT%\GC-UI\frontend
where flutter >nul 2>nul
if errorlevel 1 (
echo 找不到 flutter,请先安装 Flutter SDK 并加入 PATH。
exit /b 1
)
echo ==^> 构建后端(GC.UI.Server)
dotnet build "%ROOT%\GC-UI\backend\GC.UI.Server\GC.UI.Server.csproj" -c Release
if errorlevel 1 exit /b 1
echo ==^> 构建前端(windows)
cd /d "%FRONTEND%"
call flutter pub get
if errorlevel 1 exit /b 1
call flutter build windows --release
if errorlevel 1 exit /b 1
echo ==^> 完成
echo 产物: %FRONTEND%\build\windows\x64\runner\Release\
endlocal