diff options
| author | Brendan Allan <[email protected]> | 2025-12-15 12:40:49 +0800 |
|---|---|---|
| committer | Brendan Allan <[email protected]> | 2025-12-15 12:40:49 +0800 |
| commit | 220c564047946a96ac604a668926d38b99cfec88 (patch) | |
| tree | 4f0383fc6cb86903e729596cf89e4d0b56186f5d | |
| parent | cf5c0129ac2663950b049d89367c35f4f13d3a2d (diff) | |
| download | opencode-220c564047946a96ac604a668926d38b99cfec88.tar.gz opencode-220c564047946a96ac604a668926d38b99cfec88.zip | |
tauri: use correct sidecar name
| -rw-r--r-- | packages/tauri/src-tauri/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/tauri/src-tauri/src/lib.rs b/packages/tauri/src-tauri/src/lib.rs index a275fab78..b06ccd06c 100644 --- a/packages/tauri/src-tauri/src/lib.rs +++ b/packages/tauri/src-tauri/src/lib.rs @@ -4,9 +4,9 @@ use std::{ sync::{Arc, Mutex}, time::{Duration, Instant}, }; -use tauri::{AppHandle, LogicalSize, Manager, Monitor, RunEvent, WebviewUrl, WebviewWindow}; #[cfg(target_os = "macos")] use tauri::TitleBarStyle; +use tauri::{AppHandle, LogicalSize, Manager, Monitor, RunEvent, WebviewUrl, WebviewWindow}; use tauri_plugin_dialog::{DialogExt, MessageDialogButtons, MessageDialogResult}; use tauri_plugin_shell::process::{CommandChild, CommandEvent}; use tauri_plugin_shell::ShellExt; @@ -66,7 +66,7 @@ fn find_and_kill_process_on_port(port: u16) -> Result<(), Box<dyn std::error::Er fn spawn_sidecar(app: &AppHandle, port: u16) -> CommandChild { let (mut rx, child) = app .shell() - .sidecar("opencode") + .sidecar("opencode-cli") .unwrap() .env("OPENCODE_EXPERIMENTAL_ICON_DISCOVERY", "true") .env("OPENCODE_CLIENT", "desktop") |
