init2
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user