Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

test(e2e): 显式二值化 DSH_E2E_DISABLE_DOWNLOAD,避免继承父进程环境

hairyfcd4f21977e6b
diff --git a/test/e2e/support/desktop-host.ts b/test/e2e/support/desktop-host.ts
index 3b6d60b8..a599375c 100644
--- a/test/e2e/support/desktop-host.ts
+++ b/test/e2e/support/desktop-host.ts
@@ -142,7 +142,9 @@ export async function startDesktopApp(options: StartDesktopAppOptions = {}): Pro
USERPROFILE: profile,
HOME: profile,
DSH_DOWNLOAD_CACHE_DIR: cacheDir,
- ...(disableDownload ? { DSH_E2E_DISABLE_DOWNLOAD: '1' } : {}),
+ // 显式二值化:子进程会继承父进程环境,开发者 shell 里若已置位该变量,
+ // 不禁用的用例会被悄悄带上「禁用下载」的语义(Rust 侧只认 1/true)。
+ DSH_E2E_DISABLE_DOWNLOAD: disableDownload ? '1' : '0',
}
const capabilities = createTauriCapabilities(binaryPath, {