Files
silver_pose/v1/scripts/build-v1-release.ps1
T

14 lines
508 B
PowerShell

param(
[Parameter(Mandatory = $true)][string]$ModelPath,
[Parameter(Mandatory = $true)][string]$ModelSha256,
[string]$Output = "dist/SilverPose-V1"
)
$ErrorActionPreference = "Stop"
$projectRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..")).Path
Set-Location $projectRoot
python -m v1.release build --project-root $projectRoot --model-path $ModelPath --model-sha256 $ModelSha256 --output $Output
if ($LASTEXITCODE -ne 0) {
throw "V1 release package build failed with exit code $LASTEXITCODE"
}