DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(tauri): fix Windows data directory conflicts and update preset plugin versions
hairyf3a9b423172b4
diff --git a/src-tauri/resources/preset-plugins.json b/src-tauri/resources/preset-plugins.jsonindex 5e8db71a..fd3a7276 100644--- a/src-tauri/resources/preset-plugins.json+++ b/src-tauri/resources/preset-plugins.json@@ -30,7 +30,7 @@},{"id": "dsh-tauri-worktree",- "spec": "[email protected]",+ "spec": "[email protected]","internal": true,"name": "DSH Tauri Worktree","description": "Per-session isolated Git Worktree for the desktop shell: switch a conversation to its own isolated worktree, then check changes back into a local dsh/ branch or discard them.",diff --git a/src-tauri/src/desktop/builder.rs b/src-tauri/src/desktop/builder.rsindex 009a873f..21a21140 100644--- a/src-tauri/src/desktop/builder.rs+++ b/src-tauri/src/desktop/builder.rs@@ -9,14 +9,11 @@ use tauri::{ipc::Invoke,menu::{Menu, MenuEvent, MenuItem},tray::{MouseButton, TrayIconBuilder, TrayIconEvent},- Emitter, Runtime, WebviewUrl, WebviewWindowBuilder, Wry,+ Emitter, Manager, Runtime, WebviewUrl, WebviewWindowBuilder, Wry,};#[cfg(target_os = "macos")]-use tauri::{- menu::{PredefinedMenuItem, Submenu},- Manager,-};+use tauri::menu::{PredefinedMenuItem, Submenu};#[cfg(target_os = "macos")]static MACOS_FULLSCREEN_MENU_ITEM: OnceLock<Mutex<Option<PredefinedMenuItem<Wry>>>> =@@ -340,6 +337,20 @@ pub fn build_main_window(app: &tauri::AppHandle<Wry>) -> tauri::Result<tauri::We#[cfg(windows)]let webview_builder = webview_builder.visible(false)+ // 开发版使用独立 WebView2 数据目录,避免已有 release 实例、热重启残留+ // 或其他同标识实例占用同一 User Data 管道,触发 HRESULT 0x8007139F。+ .data_directory({+ let mut directory = app+ .path()+ .app_local_data_dir()+ .expect("Failed to resolve app local data directory");+ directory.push(if cfg!(debug_assertions) {+ "EBWebView-dev"+ } else {+ "EBWebView"+ });+ directory+ })// WebView2 原生非客户区可直接接收触摸输入;同时禁用会抢占手势的弹性滚动。.additional_browser_args(windows_drag_browser_args());