DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(core): point Harness package download source to dsh-tauri-desk org
hairyf3e36a1914593
diff --git a/src-tauri/src/config/constants.rs b/src-tauri/src/config/constants.rsindex 7ecd82c1..e732da34 100644--- a/src-tauri/src/config/constants.rs+++ b/src-tauri/src/config/constants.rs@@ -11,7 +11,7 @@ pub const NODE_MIRROR_BASE_URL: &str = "https://npmmirror.com/mirrors/node/";/// 打包的 DeepSeek Harness 发行版下载地址(GitHub Release,默认首选源)pub const DSH_CORE_URL: &str =- "https://github.com/hairyf/deepseek-harness-pkg/releases/latest/download/";+ "https://github.com/dsh-tauri-desk/deepseek-harness-pkg/releases/latest/download/";/// GitHub Release 的 ghfast.top 中转前缀(透传官方 URL,下载内容一致、/// 仍可做 SHA-256 完整性校验),用作官方直连失败时的兜底镜像。@@ -19,7 +19,7 @@ pub const DSH_MIRROR_PREFIX: &str = "https://ghfast.top/";/// 打包的 DeepSeek Harness 发行版镜像下载地址(ghfast.top 中转 GitHub Release)pub const DSH_MIRROR_CORE_URL: &str =- "https://ghfast.top/https://github.com/hairyf/deepseek-harness-pkg/releases/latest/download/";+ "https://ghfast.top/https://github.com/dsh-tauri-desk/deepseek-harness-pkg/releases/latest/download/";/// 捆绑的 pnpm 版本(与 deepseek-harness-pkg 的 packageManager: [email protected] 对齐)pub const PNPM_VERSION: &str = "11.7.0";diff --git a/src-tauri/src/config/runtime.rs b/src-tauri/src/config/runtime.rsindex 972b74b0..6e332d82 100644--- a/src-tauri/src/config/runtime.rs+++ b/src-tauri/src/config/runtime.rs@@ -424,7 +424,7 @@ mod tests {#[test]fn mirror_url_prepends_ghfast_prefix() {- let asset = "https://github.com/hairyf/deepseek-harness-pkg/releases/download/v1.0.0/deepseek-harness-pkg-windows.zip";+ let asset = "https://github.com/dsh-tauri-desk/deepseek-harness-pkg/releases/download/v1.0.0/deepseek-harness-pkg-windows.zip";assert_eq!(mirror_download_url(asset),format!("{DSH_MIRROR_PREFIX}{asset}")diff --git a/src-tauri/src/service/download/core.rs b/src-tauri/src/service/download/core.rsindex e511e551..3edaab95 100644--- a/src-tauri/src/service/download/core.rs+++ b/src-tauri/src/service/download/core.rs@@ -543,9 +543,9 @@ pub async fn ensure_extract<'a, R: Runtime>(}/// GitHub API 地址(未认证限流 60 次/小时/IP,仅供每次启动检查一次)-const DSH_PKG_GITHUB_API: &str = "https://api.github.com/repos/hairyf/deepseek-harness-pkg";+const DSH_PKG_GITHUB_API: &str = "https://api.github.com/repos/dsh-tauri-desk/deepseek-harness-pkg";/// pkg 仓库 HTML 来源;`releases.atom` 走 github.com 而非 api.github.com,不受未认证限流约束。-const DSH_PKG_REPO: &str = "https://github.com/hairyf/deepseek-harness-pkg";+const DSH_PKG_REPO: &str = "https://github.com/dsh-tauri-desk/deepseek-harness-pkg";/// 最新 Harness 发行版信息(版本 tag + 对应 commit hash)#[derive(Debug, Clone, serde::Serialize)]@@ -1046,7 +1046,7 @@ mod tests {assert!(validate_download_url("https://cdn.npmmirror.com/binaries/node/v22/file.zip").is_ok());assert!(validate_download_url("https://registry.npmmirror.com/pnpm/-/pnpm.tgz").is_ok());assert!(validate_download_url(- "https://ghfast.top/https://github.com/hairyf/deepseek-harness-pkg/releases/latest/download/deepseek-harness-pkg-windows.zip"+ "https://ghfast.top/https://github.com/dsh-tauri-desk/deepseek-harness-pkg/releases/latest/download/deepseek-harness-pkg-windows.zip").is_ok());}