feat(v1): add demo runbook and release package

This commit is contained in:
ila
2026-07-22 15:10:11 +08:00
parent 3b263a87ea
commit 084082055d
10 changed files with 446 additions and 12 deletions
+6 -2
View File
@@ -9,7 +9,7 @@ Set-Location -Path $PSScriptRoot
$InstallCmd = 'python -c "import cv2, numpy, ultralytics, PyQt5; print(''required Python packages available'')"'
$VerifyCmd = "python -m compileall -q demo"
$V1TestCmd = "python -m pytest v1/tests -v"
$StartCmd = "Set-Location demo; python main.py"
$StartCmd = "python -m v1.app"
function Invoke-Checked {
param([string]$Label, [string]$Command)
@@ -22,7 +22,11 @@ function Invoke-Checked {
Write-Host "==> 当前目录: $($PWD.Path)"
Invoke-Checked -Label "检查 Silver Pose Python 依赖" -Command $InstallCmd
Invoke-Checked -Label "运行 demo 基线验证" -Command $VerifyCmd
if (Test-Path -LiteralPath "demo") {
Invoke-Checked -Label "运行 demo 基线验证" -Command $VerifyCmd
} else {
Write-Host "==> 发布包未包含 demo/,跳过旧基线编译"
}
Invoke-Checked -Label "运行 V1 单元测试" -Command $V1TestCmd
Write-Host "==> 图形界面启动命令"