This commit is contained in:
zimoyin
2026-10-12 11:00:09 +08:00
parent 150ad63f24
commit 5ddda545f5
20 changed files with 659 additions and 19 deletions
+15
View File
@@ -0,0 +1,15 @@
$ErrorActionPreference = "Stop"
$ProjectRoot = Split-Path -Parent $PSScriptRoot
Set-Location $ProjectRoot
$PackagedExe = Join-Path $ProjectRoot "dist\ocr-server\ocr-server.exe"
if (Test-Path $PackagedExe) {
& $PackagedExe
exit $LASTEXITCODE
}
if (-not (Get-Command uv -ErrorAction SilentlyContinue)) {
throw "未找到打包程序,也未安装 uv。请先运行 scripts/package-windows.ps1 或安装 uv。"
}
uv run ocr-server