Browse Source

Revert "fix(desktop): use current_binary() to support symlinked executables (#7102)"

This reverts commit bb09df0c778896daa36b8b43cb3447ef25b16b4b.
Aiden Cline 1 month ago
parent
commit
675eba6588
1 changed files with 2 additions and 3 deletions
  1. 2 3
      packages/desktop/src-tauri/src/cli.rs

+ 2 - 3
packages/desktop/src-tauri/src/cli.rs

@@ -10,9 +10,8 @@ fn get_cli_install_path() -> Option<std::path::PathBuf> {
 }
 }
 
 
 pub fn get_sidecar_path() -> std::path::PathBuf {
 pub fn get_sidecar_path() -> std::path::PathBuf {
-    // Get binary with symlinks support
-    tauri::process::current_binary()
-        .expect("Failed to get current binary")
+    tauri::utils::platform::current_exe()
+        .expect("Failed to get current exe")
         .parent()
         .parent()
         .expect("Failed to get parent dir")
         .expect("Failed to get parent dir")
         .join("opencode-cli")
         .join("opencode-cli")