feat(v1): add secure configuration baseline
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
# Silver Pose 的 Windows 统一启动与验证入口。
|
||||
# 当前阶段验证 demo 基线;T-101 创建 v1 后,应同步更新本文件和 docs/03-tech-stack.md。
|
||||
# V1 的 requirements.txt 是显式安装清单;本脚本只检查已安装依赖,避免修改当前环境。
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
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"
|
||||
|
||||
function Invoke-Checked {
|
||||
@@ -22,6 +23,7 @@ function Invoke-Checked {
|
||||
Write-Host "==> 当前目录: $($PWD.Path)"
|
||||
Invoke-Checked -Label "检查 Silver Pose Python 依赖" -Command $InstallCmd
|
||||
Invoke-Checked -Label "运行 demo 基线验证" -Command $VerifyCmd
|
||||
Invoke-Checked -Label "运行 V1 单元测试" -Command $V1TestCmd
|
||||
|
||||
Write-Host "==> 图形界面启动命令"
|
||||
Write-Host " $StartCmd"
|
||||
|
||||
Reference in New Issue
Block a user