fix(runtime): use gitea /media/ URLs so Git LFS bundles resolve (not the pointer)
This commit is contained in:
@@ -949,20 +949,22 @@ pub async fn download_npu_model(app: AppHandle) -> WaResult<()> {
|
||||
}
|
||||
|
||||
/// Hosted OpenVINO runtime bundle (ORT 1.24.1 + OpenVINO 2025.4.1 DLLs, 7z).
|
||||
/// Served from the repo's `runtime/` dir via gitea's raw path; overridable at
|
||||
/// Served from the repo's `runtime/` dir via gitea's `media` path (resolves the
|
||||
/// Git LFS object, unlike `raw` which returns the pointer); overridable at
|
||||
/// runtime via `WA_NPU_RUNTIME_URL`. Keep the SHA-256 in step with the file.
|
||||
#[cfg(feature = "npu")]
|
||||
const NPU_RUNTIME_URL: &str =
|
||||
"https://git.dou.bet/iamdoubz/WhispAssist/raw/branch/main/runtime/openvino.7z";
|
||||
"https://git.dou.bet/iamdoubz/WhispAssist/media/branch/main/runtime/openvino.7z";
|
||||
/// SHA-256 of the runtime bundle; empty string disables the integrity check.
|
||||
#[cfg(feature = "npu")]
|
||||
const NPU_RUNTIME_SHA256: &str = "ca0be9fc52c78ee623b152f790450b3d4020c5a7ebe99d27736455b308782191";
|
||||
|
||||
/// Hosted DirectML runtime bundle (ORT 1.24.1 DirectML-EP DLLs, 7z), same repo
|
||||
/// raw path as the OpenVINO one; overridable via `WA_DIRECTML_RUNTIME_URL`.
|
||||
/// `media` (LFS-resolving) path as the OpenVINO one; overridable via
|
||||
/// `WA_DIRECTML_RUNTIME_URL`.
|
||||
#[cfg(feature = "npu")]
|
||||
const DIRECTML_RUNTIME_URL: &str =
|
||||
"https://git.dou.bet/iamdoubz/WhispAssist/raw/branch/main/runtime/directml.7z";
|
||||
"https://git.dou.bet/iamdoubz/WhispAssist/media/branch/main/runtime/directml.7z";
|
||||
/// SHA-256 of the DirectML runtime bundle; empty string disables the check.
|
||||
#[cfg(feature = "npu")]
|
||||
const DIRECTML_RUNTIME_SHA256: &str =
|
||||
|
||||
Reference in New Issue
Block a user