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
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
if [[ -x dist/ocr-server/ocr-server ]]; then
exec dist/ocr-server/ocr-server
fi
if command -v uv >/dev/null 2>&1; then
exec uv run ocr-server
fi
if [[ -x .venv/bin/ocr-server ]]; then
exec .venv/bin/ocr-server
fi
printf '%s\n' '未找到 uv 或 .venv/bin/ocr-server,请先运行 scripts/package-ubuntu.sh 或安装项目依赖。' >&2
exit 1