DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
feat(desktop): 应用标识符缩短为 dsh-tauri 并迁移旧 app-data 目录
hairyf67f058c9b55e
diff --git a/docs/specs/desktop.test.md b/docs/specs/desktop.test.mdindex 39a7659c..0fdc876d 100644--- a/docs/specs/desktop.test.md+++ b/docs/specs/desktop.test.md@@ -124,7 +124,7 @@ E2E **必须**使用 `data-testid` 定位,严禁依赖 CSS 类名、DOM 层级| dsh 数据目录 `~/.dsh.dev` | `get_dsh_data_path` 读 `USERPROFILE`/`HOME`(`src-tauri/src/config/runtime.rs:455`、`:457`) || 应用数据目录(Store / 日志 / 依赖) | `app_data_dir()` = `dirs::data_dir()/<identifier>`;Windows 上由 home 派生 `<home>\AppData\Roaming` |-实测确认:home 重定向后 Store 落在 `$E2E_HOME/home/AppData/Roaming/io.github.hairyf.deepseek-harness-desktop/`,用户真实的 `.store.dev.dat` / `.store.dat` / `~/.dsh.dev` 时间戳均不变。+实测确认:home 重定向后 Store 落在 `$E2E_HOME/home/AppData/Roaming/dsh-tauri/`,用户真实的 `.store.dev.dat` / `.store.dat` / `~/.dsh.dev` 时间戳均不变。**启动前提**:`<home>/AppData/Local` 与 `<home>/AppData/Roaming` 必须**预先存在**。`tauri-plugin-http` 的 setup 调用 `app_cache_dir()`,解析不到即 `UnknownPath`,应用于 `lib.rs` 的 `expect` 处 panic(exit 101)。缺这两个目录时表现为「应用启动即崩溃」,容易被误判为二进制损坏。diff --git a/docs/testing/desktop/00-overview.md b/docs/testing/desktop/00-overview.mdindex 7035f40c..73b409f7 100644--- a/docs/testing/desktop/00-overview.md+++ b/docs/testing/desktop/00-overview.md@@ -66,7 +66,7 @@| 落盘位置 | 隔离方式 || --- | --- || dsh 数据(`~/.dsh.dev`) | `USERPROFILE`(Windows)/`HOME`(Unix) → `<home>/home` |-| 应用 app-data | 同上派生 |+| 应用 app-data(`<home>/home/AppData/Roaming/dsh-tauri`) | 同上派生 || WebView2 profile | `DSH_E2E_WEBVIEW_DATA_DIR` → `<home>/webview2`(`app_local_data_dir()` 走 `SHGetKnownFolderPath`,重定向 `LOCALAPPDATA` 无效) || 下载缓存 | `DSH_DOWNLOAD_CACHE_DIR` → `<home>/download-cache`(默认每次运行独占空目录) || Store | 启动前删除 `<app-data>/.store.test.dat`(`resetTestStore()`) |@@ -76,6 +76,8 @@1. 必须先建好 `<home>/home/AppData/Local` 与 `AppData/Roaming`,否则插件宿主初始化 panic(退出码 101)。2. **不要指望 `DSH_HOME`**:debug 构建恒用 `<home>/.dsh.dev`,`DSH_HOME` 被忽略(`src-tauri/src/config/runtime.rs`)。+> **标识符改名**:app-data 目录名随 `identifier` 从长标识符缩短为 `dsh-tauri`,旧目录由启动期迁移搬入(`src-tauri/src/service/migrate.rs`,Rust 单测覆盖)。迁移**只在 release 构建执行**:debug/E2E 与生产共用 app-data 根目录(生产 `.store.dat` 就在其中),开发与测试运行不得搬动它。+> **本机运行注意**:本机已有桌面实例占着 WebDriver 4445 时,用 `TAURI_WEBDRIVER_PORT=<空闲端口>` 另开一路即可,无需结束用户实例;另外请在后台/独立终端执行——前台终端会抢走应用窗口焦点,依赖窗口激活的交互断言会假失败。## 6. CIdiff --git a/docs/testing/history.md b/docs/testing/history.mdindex 3d3d179d..f5a56c4b 100644--- a/docs/testing/history.md+++ b/docs/testing/history.md@@ -37,3 +37,4 @@| 2026-09 | **测试文件与用例文档同名同序号**:`test/e2e/plugins/<序号>-<主题>.e2e.ts` ↔ `docs/testing/plugins/<序号>-<主题>.md`,一个编号只允许一个测试文件(批内按层用 `describe` 分区)。`session-stream.e2e.ts` → `02-dsh-tauri-pet.e2e.ts`;新增 `01-dsh-host-and-core-contract.e2e.ts`。`docs/specs/plugin.test.md` §4 与 `plugins/00-overview.md` §2/§3/§9 同步 || 2026-09 | **插件 L2 宿主用量与日志收敛**:一次 `pnpm test:e2e:plugin` 从 7 次起宿主降到 3 次(21s,原 50s)。`globalSetup` 的共享宿主默认挂载改为 `dsh-tauri-pet` + `also: dsh-tauri,dsh-tauri-rightclick`,使 `01` 的 002 与共享契约段共 8 条复用同一进程;`dsh-host.ts` 抽出并导出 `scaffoldDshProfile`(只建 profile + 挂载、不起宿主),`01` 的 006 改为只验 `dsh plugin add` 的落盘结果;005 只保留 `keepHome` 分支(「默认清理」由 001 覆盖)。控制台每次起宿主只留 3 行(`🚀 挂载 DSH 核心 [<版本>] (profile: <scratch 目录名>)` / `└─ 路径: <dsh bin>` / `✅ 就绪 [<baseUrl>] → <已挂载包>`),删除「挂载方式/profile=」「启动 dsh web(DSH_HOME=…)」「使用桌面端已装配的 dsh:<长路径>」「KEEP_HOME:保留」四处刷屏 || 2026-09 | **批次 `01` 实现并运行验证(插件车道,12 例全绿)**:`test/e2e/plugins/01-dsh-host-and-core-contract.e2e.ts` 覆盖编排骨架 6 例(`TC-HOST-L2-01-001`–`006`)+ 共享路由契约 6 例(`TC-CORE-L2-01-001`–`006`),`pnpm test:e2e:plugin` 全车道 14 例通过。编排新增导出 `assertMountRegistered`,使 link 模式下不可达的「挂载漏登记」分支可被直接覆盖。「未构建产物」夹具改用 `dsh-tauri-tsdown`(源码即产物、被 `build:plugins` 显式排除),不再移动仓库产物。**实测修正**:跨源变更请求在真实宿主里由上游 `dsh-client-connection` 的 Host/Origin 围栏先拒(`forbidden`),路由层 `routes/index.ts:287` 的 `cross-origin-request` 在 L2 不可达,该分支由 L1 `packages/dsh-tauri/src/host/routes/index.test.ts:240` 覆盖,`plugins/01` 的期望值已按可观察事实改写;`plugins/00-overview.md` 缺口 G1/G4 消解、新增 G10 |+| 2026-09 | **应用标识符缩短**:`tauri.conf.json` 的 `identifier` 由 `io.github.hairyf.deepseek-harness-desktop` 改为 `dsh-tauri`(app-data / app-local-data 目录名随之变化),新增 `config::APP_IDENTIFIER` / `LEGACY_APP_IDENTIFIER` 常量,`logger` 不再自带字面量。新增启动期迁移 `service::migrate::migrate_app_data_dir`:在 `detect_first_install` 之前把旧标识符兄弟目录整体搬入新目录(同卷 rename 快路径,已存在则递归合并、新者胜,搬入的 pnpm 元数据清除),失败仅告警不阻断;**debug/E2E 不执行**(app-data 根与生产共用,不得搬动),由 Rust 单测覆盖路径映射与「目标已存在(logger 先落盘 logs)时仍完整搬入 Store/依赖」两个场景。同步更新 E2E 编排路径(`desktop-host.ts` / `dsh-host.ts`)、shim/进程测试夹具、`resources/README.md`、`skills/handle/SKILL.md`、`docs/specs/desktop.test.md` §6.1 与 `docs/testing/desktop/00-overview.md` §5 |diff --git a/docs/testing/progressive.md b/docs/testing/progressive.mdindex b1d7c225..c509a429 100644--- a/docs/testing/progressive.md+++ b/docs/testing/progressive.md@@ -54,7 +54,7 @@| 编号 | 业务/功能模块分组 | 状态 | 详细状态说明与核心逻辑收敛 || --- | --- | --- | --- |-| 00 | 总览与前置 | 已验证 | 覆盖范围、环境事实、前置校验、数据目录隔离与运行命令;随范围收敛重写。 |+| 00 | 总览与前置 | 已验证 | 覆盖范围、环境事实、前置校验、数据目录隔离与运行命令;随范围收敛重写。app-data 目录名随 `identifier` 缩短为 `dsh-tauri`(`<home>/home/AppData/Roaming/dsh-tauri`),旧目录迁移只在 release 执行。 || 01 | 启动冒烟:进入下载装配 → dsh 内核启动 → 页面无报错 | 已实现 | 桌面端唯一保留的 L3 用例(`TC-DSK-L3-01-001`):独占空缓存启动 → 过预装引导 → 断言运行时与 dsh 本体落盘、`service_url` 可用且 iframe 挂载、帧内 `#root` 渲染出内容、壳层与帧内报错收集器为空。 |### 4.2 插件 (`docs/testing/plugins/`)diff --git a/skills/handle/SKILL.md b/skills/handle/SKILL.mdindex df5715c4..880e5a81 100644--- a/skills/handle/SKILL.md+++ b/skills/handle/SKILL.md@@ -10,6 +10,6 @@ metadata:可能相关的上下文:-- Window:%APPDATA%\io.github.hairyf.deepseek-harness-desktop\dependencies-- macOS:~/Library/Application Support/io.github.hairyf.deepseek-harness-desktop/dependencies-- Linux:~/.config/io.github.hairyf.deepseek-harness-desktop/dependencies\ No newline at end of file+- Window:%APPDATA%\dsh-tauri\dependencies+- macOS:~/Library/Application Support/dsh-tauri/dependencies+- Linux:~/.local/share/dsh-tauri/dependencies\ No newline at end of filediff --git a/src-tauri/resources/README.md b/src-tauri/resources/README.mdindex 6c208343..b635b223 100644--- a/src-tauri/resources/README.md+++ b/src-tauri/resources/README.md@@ -3,8 +3,8 @@This directory is bundled into the installer as `resources/**`.At runtime, the application downloads everything it needs into the OS user-data-directory (the Tauri app-data dir for identifier-`io.github.hairyf.deepseek-harness-desktop`, e.g. `%APPDATA%/io.github.hairyf.deepseek-harness-desktop/` on Windows):+directory (the Tauri app-data dir for identifier `dsh-tauri`, e.g.+`%APPDATA%/dsh-tauri/` on Windows):- `runtime/` — the bundled Node.js runtime (downloaded on first run)- `dependencies/dsh/` — the packaged DeepSeek Harness distribution (downloaded from the@@ -15,6 +15,13 @@ directory (the Tauri app-data dir for identifierNo manual Node.js or pnpm installation is required.+On the first launch after the identifier was shortened from+`io.github.hairyf.deepseek-harness-desktop` to `dsh-tauri`, the app **moves** the+whole legacy app-data directory (settings store, logs, downloaded runtime and+`dependencies/`) into the new one, so upgrades keep their configuration. The move+runs before the first-install check and is non-fatal on failure (legacy data stays+in place and the next launch retries).+## `$DSH_HOME` — shared with the official Node.js installThe user data directory (`$DSH_HOME`) used by the running `dsh` process followsdiff --git a/src-tauri/src/config/constants.rs b/src-tauri/src/config/constants.rsindex 619ec85f..fa93df7b 100644--- a/src-tauri/src/config/constants.rs+++ b/src-tauri/src/config/constants.rs@@ -60,6 +60,15 @@ pub const DSH_HOME_DIR_NAME: &str = ".dsh";/// 同时运行时互不干扰,也不会互相污染对方的会话数据。pub const DSH_HOME_DEV_DIR_NAME: &str = ".dsh.dev";+/// 应用标识符:`app_data_dir()` / `app_local_data_dir()` 的目录名,必须与+/// `tauri.conf.json` 的 `identifier` 逐字一致(日志目录同样由它派生)。+pub const APP_IDENTIFIER: &str = "dsh-tauri";++/// 历史应用标识符(`io.github.hairyf.deepseek-harness-desktop`):标识符缩短为+/// `dsh-tauri` 后旧用户的 app-data 目录名,仅用于迁移来源识别(见+/// `service::migrate::migrate_app_data_dir`)。+pub const LEGACY_APP_IDENTIFIER: &str = "io.github.hairyf.deepseek-harness-desktop";+/// 开发构建在 AppData 下使用的独立子目录。Node、Harness、pnpm、Git 等可执行/// 核心不应与 release 共用,否则开发版更新/切换核心会替换正在运行的生产文件。pub const APP_DATA_DEV_DIR_NAME: &str = "dev";diff --git a/src-tauri/src/desktop/builder.rs b/src-tauri/src/desktop/builder.rsindex dbfc4478..caa19c1a 100644--- a/src-tauri/src/desktop/builder.rs+++ b/src-tauri/src/desktop/builder.rs@@ -976,6 +976,12 @@ pub fn builder() -> tauri::Builder<tauri::Wry> {.manage(crate::desktop::pet_mouse::PetMouseStreamState::default()).setup(|app| {let app_handle = app.handle().clone();+ // 标识符改名(app-data 目录名同步变化):旧目录必须在任何 store 读写之前+ // 搬过来,否则升级用户会被误判成首装(见+ // service::migrate::migrate_app_data_dir)。失败仅告警,不阻断启动。+ if let Err(error) = crate::service::migrate::migrate_app_data_dir(&app_handle) {+ log::warn!("[migrate] app data dir migration failed: {error}");+ }// 首装检测必须最先执行:窗口几何恢复/退出保存等任何 store 写入都会// 创建 store 文件,判定晚于它们会把首装误判为升级(见// config::detect_first_install 的时序说明)。diff --git a/src-tauri/src/logger/mod.rs b/src-tauri/src/logger/mod.rsindex c6885e0f..ff7f3dbe 100644--- a/src-tauri/src/logger/mod.rs+++ b/src-tauri/src/logger/mod.rs@@ -17,7 +17,9 @@ use tracing_subscriber::filter::filter_fn;use tracing_subscriber::fmt::time::OffsetTime;use tracing_subscriber::layer::{Layer, SubscriberExt};use tracing_subscriber::{fmt, util::SubscriberInitExt, EnvFilter};-const APP_IDENTIFIER: &str = "io.github.hairyf.deepseek-harness-desktop";++use crate::config::APP_IDENTIFIER;+const LOG_FILE_NAME: &str = "desktop.log";const FRONTDESK_LOG_FILE_NAME: &str = "desktop.frontdesk.log";const MAX_LOG_BYTES: u64 = 5 * 1024 * 1024;diff --git a/src-tauri/src/service/cli/shim/build.rs b/src-tauri/src/service/cli/shim/build.rsindex 2299c1b1..19372efc 100644--- a/src-tauri/src/service/cli/shim/build.rs+++ b/src-tauri/src/service/cli/shim/build.rs@@ -371,9 +371,7 @@ mod tests {#[test]fn cmd_shim_escapes_percent() {- let dir = PathBuf::from(- r"C:\Users\100%test\AppData\Roaming\io.github.hairyf.deepseek-harness-desktop",- );+ let dir = PathBuf::from(r"C:\Users\100%test\AppData\Roaming\dsh-tauri");let content = build_cmd_shim(&dir, &sample_dsh_home());assert!(content.contains("100%%test"));assert!(!content.contains(r#"set "APP_DIR=C:\Users\100%test""#));@@ -870,9 +868,7 @@ mod tests {#[cfg(windows)]#[test]fn ps1_shim_escapes_quotes() {- let dir = PathBuf::from(- r"C:\Users\o'brien\AppData\Roaming\io.github.hairyf.deepseek-harness-desktop",- );+ let dir = PathBuf::from(r"C:\Users\o'brien\AppData\Roaming\dsh-tauri");let content = build_ps1_shim(&dir, &sample_dsh_home());assert!(content.contains(r"o''brien"));// dsh_home 同样走 ps1 转义diff --git a/src-tauri/src/service/cli/shim/mod.rs b/src-tauri/src/service/cli/shim/mod.rsindex 53ef3592..176e2027 100644--- a/src-tauri/src/service/cli/shim/mod.rs+++ b/src-tauri/src/service/cli/shim/mod.rs@@ -59,11 +59,9 @@ mod test_util {pub(super) fn sample_app_dir() -> PathBuf {if cfg!(windows) {- PathBuf::from(- r"C:\Users\test\AppData\Roaming\io.github.hairyf.deepseek-harness-desktop",- )+ PathBuf::from(r"C:\Users\test\AppData\Roaming\dsh-tauri")} else {- PathBuf::from("/home/test/.local/share/io.github.hairyf.deepseek-harness-desktop")+ PathBuf::from("/home/test/.local/share/dsh-tauri")}}diff --git a/src-tauri/src/service/migrate.rs b/src-tauri/src/service/migrate.rsindex fdc5b9b1..da1053b9 100644--- a/src-tauri/src/service/migrate.rs+++ b/src-tauri/src/service/migrate.rs@@ -1,7 +1,8 @@//! 用户数据目录迁移:旧版 AppData `data/dsh` → 官方 `$DSH_HOME`(`~/.dsh`)。//!//! 早期桌面版把 `$DSH_HOME` 隔离在应用数据目录-//! (`%APPDATA%/io.github.hairyf.deepseek-harness-desktop/data/dsh`),与官方+//! (`{app-data}/data/dsh`,当时的 app-data 目录名还是长标识符+//! `io.github.hairyf.deepseek-harness-desktop`),与官方//! node 安装(`${DSH_HOME:-$HOME/.dsh}`)不一致,两边数据互不相通。本模块在//! 启动早期把旧数据迁移到官方 `$DSH_HOME`,之后桌面版与官方安装共用同一份数据。//!@@ -22,7 +23,7 @@use crate::config;use std::fs;use std::path::{Path, PathBuf};-use tauri::AppHandle;+use tauri::{AppHandle, Manager};/// 旧版(<0.x 迁移版)$DSH_HOME 位置:AppData 下的 `data/dsh`。fn legacy_dsh_home(app_handle: &AppHandle) -> PathBuf {@@ -76,6 +77,54 @@ pub fn migrate(app_handle: &AppHandle) -> Result<(), String> {Ok(())}+/// 旧标识符对应的 app-data 目录:与当前目录同父(`dirs::data_dir()`)的兄弟目录。+///+/// `app_data_dir()` 恒为 `<data_dir>/<identifier>`,因此改名后旧目录就是同一父目录+/// 下换成旧标识符的那个兄弟目录;同父即同卷,`rename` 快路径可用。+fn legacy_app_data_dir(target: &Path) -> Option<PathBuf> {+ target+ .parent()+ .map(|parent| parent.join(config::LEGACY_APP_IDENTIFIER))+}++/// 启动最早期调用:把旧标识符的 app-data 目录整体搬到新标识符目录。+///+/// 标识符从 `io.github.hairyf.deepseek-harness-desktop` 缩短为 `dsh-tauri` 后,+/// `app_data_dir()` 随之改名;旧用户的 Store(`.store.dat`,含端口、档案、+/// 首装标记)与已装配的 Node/dsh/pnpm 全在旧目录里,不搬移等于丢失配置并重下。+///+/// 必须早于 `config::detect_first_install`:它按 `<app-data>/.store.dat` 是否存在+/// 判定首装,晚于搬移会把升级用户误判成全新安装(弹引导页 + 回落默认档案)。+/// 失败只告警不阻断,旧数据原地保留,下次启动重试。+pub fn migrate_app_data_dir(app_handle: &AppHandle) -> Result<(), String> {+ // debug 构建不搬移:app-data 根目录同时承载生产的 `.store.dat` 与 release 数据+ //(E2E 的 `.store.test.dat` 也在同一目录),开发/测试运行不得搬动它——与+ // `migrate()` 同理。开发版自己的数据在 `<app-data>/dev` 下,由 release 迁移一并带入。+ if cfg!(debug_assertions) {+ log::debug!("skipping app data dir migration in debug build (data belongs to release)");+ return Ok(());+ }++ let target = app_handle+ .path()+ .app_data_dir()+ .map_err(|e| format!("resolve app data dir failed: {e}"))?;+ let Some(legacy) = legacy_app_data_dir(&target) else {+ return Ok(());+ };+ if legacy == target || !legacy.exists() {+ return Ok(());+ }++ migrate_impl(&legacy, &target)?;+ log::info!(+ "app data dir migrated: {} -> {}",+ legacy.display(),+ target.display()+ );+ Ok(())+}+/// 迁移实现(纯路径函数,便于单测)。成功时旧目录已被删除。fn migrate_impl(legacy: &Path, target: &Path) -> Result<(), String> {if !legacy.exists() {@@ -544,4 +593,72 @@ mod tests {// 无 profiles 目录 → 无异常、不产生任何文件assert!(!home.join("profiles").exists());}++ // ------------------------------------------------------------------+ // 标识符改名:旧 app-data 目录 → 新目录(`dsh-tauri`)+ // ------------------------------------------------------------------++ #[test]+ fn legacy_app_data_dir_is_sibling_of_target() {+ let root = temp_dir("appdata-sibling");+ let target = root.join(config::APP_IDENTIFIER);+ assert_eq!(+ legacy_app_data_dir(&target),+ Some(root.join(config::LEGACY_APP_IDENTIFIER))+ );+ // 无父目录(相对空路径)→ 无可迁移对象+ assert_eq!(legacy_app_data_dir(Path::new("")), None);+ }++ #[test]+ fn app_data_dir_migration_carries_store_and_dependencies_into_existing_target() {+ let root = temp_dir("appdata-migrate");+ let legacy = root.join(config::LEGACY_APP_IDENTIFIER);+ let target = root.join(config::APP_IDENTIFIER);++ // 目标已存在:logger::init() 早于 setup(),新目录下的日志先落了盘+ write(&target.join("logs/desktop.log"), "new log");+ set_mtime(&target.join("logs/desktop.log"), 200);+ write(&legacy.join("logs/desktop.log"), "old log");+ set_mtime(&legacy.join("logs/desktop.log"), 100);++ write(&legacy.join(".store.dat"), "{\"setting\":{}}");+ write(&legacy.join("runtime/node.exe"), "node");+ write(&legacy.join("dependencies/dsh/package.json"), "{}");+ write(+ &legacy.join("dependencies/dsh/node_modules/x/index.js"),+ "// x",+ );+ write(+ &legacy.join("dependencies/dsh/node_modules/.modules.yaml"),+ "virtualStoreDir: C:\\old\\node_modules\\.pnpm\n",+ );++ let source = legacy_app_data_dir(&target).unwrap();+ assert_eq!(source, legacy);+ migrate_impl(&source, &target).unwrap();++ assert!(!legacy.exists(), "legacy app data dir must be removed");+ // Store 必须跟着走:detect_first_install 按它判定首装+ assert!(target.join(".store.dat").is_file());+ assert!(target.join("runtime/node.exe").is_file());+ assert!(target.join("dependencies/dsh/package.json").is_file());+ assert!(+ target+ .join("dependencies/dsh/node_modules/x/index.js")+ .is_file(),+ "已装配的依赖树必须无损带入(同卷 rename)"+ );+ assert!(+ !target+ .join("dependencies/dsh/node_modules/.modules.yaml")+ .exists(),+ "搬入的 pnpm 元数据记录旧绝对路径,必须清除"+ );+ assert_eq!(+ fs::read_to_string(target.join("logs/desktop.log")).unwrap(),+ "new log",+ "新目录里更新的日志不被旧日志覆盖"+ );+ }}diff --git a/src-tauri/src/service/workflow/process.rs b/src-tauri/src/service/workflow/process.rsindex 243c36c2..0d6bd56d 100644--- a/src-tauri/src/service/workflow/process.rs+++ b/src-tauri/src/service/workflow/process.rs@@ -677,7 +677,7 @@ mod tests {#[test]fn harness_cmdline_matches_macos_app_data_path_with_spaces() {- let bin = "/Users/simon/Library/Application Support/io.github.hairyf.deepseek-harness-desktop/dependencies/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js";+ let bin = "/Users/simon/Library/Application Support/dsh-tauri/dependencies/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js";let cmdline = format!("/opt/homebrew/bin/node {bin} --profile web --port 3084");assert!(is_harness_command_line(&cmdline, bin));}diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 2b0d2f0a..45d98c66 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -2,7 +2,7 @@"$schema": "https://schema.tauri.app/config/2","productName": "Deepseek Harness Desktop","version": "0.15.8",- "identifier": "io.github.hairyf.deepseek-harness-desktop",+ "identifier": "dsh-tauri","build": {"beforeDevCommand": "pnpm dev","devUrl": "http://localhost:1420",diff --git a/test/e2e/support/desktop-host.ts b/test/e2e/support/desktop-host.tsindex d189edec..fdc9777a 100644--- a/test/e2e/support/desktop-host.ts+++ b/test/e2e/support/desktop-host.ts@@ -276,7 +276,7 @@ export function isPortBusy(port: number): Promise<boolean> {/** 应用真实 app-data 目录(`SHGetKnownFolderPath` 解析,环境变量改不动它)。 */function getAppDataDir(): string {const roaming = process.env.APPDATA ?? join(process.env.USERPROFILE ?? '', 'AppData', 'Roaming')- return join(roaming, 'io.github.hairyf.deepseek-harness-desktop')+ return join(roaming, 'dsh-tauri')}/** 执行 PowerShell 命令的轻量辅助封装。 */diff --git a/test/e2e/support/dsh-host.ts b/test/e2e/support/dsh-host.tsindex 866727a2..97e8010c 100644--- a/test/e2e/support/dsh-host.ts+++ b/test/e2e/support/dsh-host.ts@@ -42,7 +42,7 @@ const READY_TIMEOUT_MS = 120_000/** 桌面端已装配的 dsh 入口(无 PATH 上的 dsh 时的兜底)。 */const ASSEMBLED_DSH = join(process.env.APPDATA ?? '',- 'io.github.hairyf.deepseek-harness-desktop',+ 'dsh-tauri','dependencies','dsh','node_modules',