Skip to content

Commit 9d55bae

Browse files
authored
fix(desktop): find bundled sidecars in production DMG builds (#731)
1 parent 2a8b765 commit 9d55bae

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

desktop/src-tauri/src/managed_agents/discovery.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,9 @@ fn command_search_dirs(app: Option<&AppHandle>) -> Vec<PathBuf> {
229229
dirs.push(current_dir.join("target/debug"));
230230
}
231231

232-
if app.is_some() {
233-
if let Ok(exe_path) = std::env::current_exe() {
234-
if let Some(parent) = exe_path.parent() {
235-
dirs.push(parent.to_path_buf());
236-
}
232+
if let Ok(exe_path) = std::env::current_exe() {
233+
if let Some(parent) = exe_path.parent() {
234+
dirs.push(parent.to_path_buf());
237235
}
238236
}
239237

0 commit comments

Comments
 (0)