Files
GC/C#/buildsh/check.sh
T
Morris cf05e886ac
PR 审核 / 后端编译 (pull_request) Waiting to run
PR 审核 / 前端检查(Flutter) (pull_request) Waiting to run
PR 审核 / 安全扫描 (pull_request) Waiting to run
refactor: 全窗口统一 Avalonia,移除 Flutter/Dart,新增 Java 实现
- 恢复同代 GC Avalonia 主界面(主页/下载/设置/关于)替换 Flutter
- 模型窗口统一 Avalonia;HTML 课件用 WebView.Avalonia 内嵌渲染
- 新增 CoursewareServer(回环 HTTP + Range)与 CoursewareWindow
- 彻底移除 Flutter/Dart 前端及构建脚本相关逻辑
- 新增 ./build.sh run 开发运行命令
- 项目源码整理到 C#/ 子目录,新增 Java/ 实现
- 工作日志随项目迁移
2026-11-27 10:09:30 +08:00

45 lines
1.0 KiB
Bash
Raw 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.
#!/bin/sh
# buildsh/check.sh —— 验证:编译 + 产物完整性
#
# 原先的「模型自检」和「离屏渲染」两项依赖已移除的截图工程;
# 这里只保证 C# 侧编译干净、发布包齐备。
#
# 步骤权重:编译(60) 产物(40)
bs_check() {
ROOT_DIR="$1"
GC_ROOT="${GC_ROOT:-$ROOT_DIR}"; export GC_ROOT
mkdir -p "$GC_ROOT/build/logs"
progress_init 100 60 40
_fail=0
progress_step "编译"
if run_logged "$GC_ROOT/build/logs/check-build.log" "解决方案编译 " \
dotnet build "$SLN" -c Release --nologo -v:q; then
progress_tick 100
else
_fail=1; progress_tick 100
fi
progress_step "产物"
_n=0
for _z in "$ROOT_DIR"/dist/*/GCL-"$VERSION"-*.zip; do
[ -f "$_z" ] && _n=$((_n + 1))
done
if [ "$_n" -ge 1 ]; then
detail "共 ${_n} 个发布包"
else
_fail=1; warn "dist 下没有发布包(先跑 ./build.sh build)"
fi
progress_tick 100
progress_done
if [ "$_fail" -eq 0 ]; then
step_ok "全部通过"
else
err "有失败项"
fi
return "$_fail"
}