fix(desktop): find bundled sidecars in production DMG builds (#731)

This commit is contained in:
Will Pfleger
2026-05-22 21:26:52 -04:00
committed by GitHub
parent 2a8b765c45
commit 9d55baefab
@@ -229,11 +229,9 @@ fn command_search_dirs(app: Option<&AppHandle>) -> Vec<PathBuf> {
dirs.push(current_dir.join("target/debug"));
}
if app.is_some() {
if let Ok(exe_path) = std::env::current_exe() {
if let Some(parent) = exe_path.parent() {
dirs.push(parent.to_path_buf());
}
if let Ok(exe_path) = std::env::current_exe() {
if let Some(parent) = exe_path.parent() {
dirs.push(parent.to_path_buf());
}
}