File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 run : cd app && npm ci
6767 - name : Build Tauri app (NSIS)
6868 shell : bash
69+ # 覆盖 .cargo/config.toml 的本地 Windows 预编译库路径([target.x86_64-pc-windows-msvc.env]):
70+ # CI runner 无 D:/ 本机目录,清空后 sherpa-onnx-sys/ort-sys 回退在线下载(CI 网络可达)
71+ env :
72+ SHERPA_ONNX_ARCHIVE_DIR : " "
73+ ORT_LIB_LOCATION : " "
74+ ORT_SKIP_DOWNLOAD : " 0"
75+ ORT_PREFER_DYNAMIC_LINK : " 1"
6976 run : cd app && npx tauri build --bundles nsis
7077 - uses : actions/upload-artifact@v4
7178 with :
Original file line number Diff line number Diff line change 1010# 相对路径会解析到不存在的目录导致静默回退在线下载。
1111# @ai-context: 预编译包下载命令(一次性,模型/库更新时重跑):
1212# Invoke-WebRequest -Uri "https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.13.5/sherpa-onnx-v1.13.5-win-x64-shared-MT-Release-lib.tar.bz2" -OutFile "sherpa-archive\sherpa-onnx-v1.13.5-win-x64-shared-MT-Release-lib.tar.bz2"
13- [env ]
13+ # @ai-context: 以上本地预编译库路径均为 Windows 专用(sherpa-archive/ 与 ort/ 下的 win-x64 包),
14+ # CI(Linux/Windows runner)必须走在线下载,故限定 [target.x86_64-pc-windows-msvc.env]——
15+ # Linux 目标不注入这些 env,sherpa-onnx-sys/ort-sys 回退默认下载路径(CI 网络可达)。
16+ [target .x86_64-pc-windows-msvc .env ]
1417SHERPA_ONNX_ARCHIVE_DIR = " D:/Program own/aicode/work space/Entropydecrease/app/src-tauri/sherpa-archive"
1518# oar-ocr 底层同样使用 pyke ort:cdn.pyke.io 被墙,改用已下载的本地 ONNX Runtime(跳过在线下载)。
1619# ADR-009(v0.4.0 M1):CUDA EP——ORT 1.28 官方 gpu_cuda12 包(含 CUDA 插件与运行时,
You can’t perform that action at this time.
0 commit comments