refactor: 全窗口统一 Avalonia,移除 Flutter/Dart,新增 Java 实现
- 恢复同代 GC Avalonia 主界面(主页/下载/设置/关于)替换 Flutter - 模型窗口统一 Avalonia;HTML 课件用 WebView.Avalonia 内嵌渲染 - 新增 CoursewareServer(回环 HTTP + Range)与 CoursewareWindow - 彻底移除 Flutter/Dart 前端及构建脚本相关逻辑 - 新增 ./build.sh run 开发运行命令 - 项目源码整理到 C#/ 子目录,新增 Java/ 实现 - 工作日志随项目迁移
This commit is contained in:
1 parent
3f1f48f54c
commit
cf05e886ac
405 files changed
+18226
-19263
No files matched your search
@@ -0,0 +1,33 @@
|
||||
function Invoke-BuildTool {
|
||||
param([Parameter(Mandatory)][string]$Name)
|
||||
switch ($Name) {
|
||||
'models' { Build-Models }
|
||||
'stamp' { Invoke-VersionStamp }
|
||||
'pack-models' { Build-Models; Pack-Models }
|
||||
'pack-launcher'{ Pack-Launcher }
|
||||
'run' { & dotnet run --project $script:AppProject -c Debug; if ($LASTEXITCODE -ne 0) { throw "dotnet run 失败,退出码 $LASTEXITCODE" } }
|
||||
'test' {
|
||||
& dotnet run --project $script:TestProject -c Debug -- (Join-Path $script:BuildRoot 'build/screenshots')
|
||||
if ($LASTEXITCODE -ne 0) { throw "测试失败,退出码 $LASTEXITCODE" }
|
||||
# 与 pr-check.yml 一致:应用器测试单独跑(它与启动器有同名类型,不能并入 GC.Tests)
|
||||
Invoke-SavedogTests
|
||||
}
|
||||
'update-test' { & dotnet run --project $script:TestProject -c Debug -- --update-test $script:BuildRoot; if ($LASTEXITCODE -ne 0) { throw "更新测试失败,退出码 $LASTEXITCODE" } }
|
||||
'clean' {
|
||||
Remove-Item (Join-Path $script:BuildRoot 'build'), (Join-Path $script:BuildRoot 'dist') -Recurse -Force -ErrorAction SilentlyContinue
|
||||
foreach ($projectRoot in @('GC', 'GC-BOOT', 'GC-DRAW', 'model')) {
|
||||
$path = Join-Path $script:BuildRoot $projectRoot
|
||||
if (Test-Path $path) {
|
||||
Get-ChildItem $path -Directory -Recurse -Force | Where-Object Name -in @('bin', 'obj') | Sort-Object FullName -Descending | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
Write-Host '==> 已清理'
|
||||
}
|
||||
'doctor' { & dotnet --info | Select-Object -First 20; if ($LASTEXITCODE -ne 0) { throw "dotnet --info 失败,退出码 $LASTEXITCODE" } }
|
||||
'dist' {
|
||||
Write-Host '==> dist 产物:'
|
||||
Get-ChildItem (Join-Path $script:BuildRoot 'dist') -ErrorAction SilentlyContinue | Select-Object Name, Length
|
||||
}
|
||||
default { throw "未知任务:$Name" }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user