fix(tauri): support sidecar exe in configured root
This commit is contained in:
parent
004ea43cf2
commit
235e46240d
@ -150,6 +150,16 @@ fn effective_root(root_override: &Option<PathBuf>) -> Result<PathBuf, String> {
|
||||
}
|
||||
|
||||
fn resolve_sidecar_path(root: &Path) -> Result<PathBuf, String> {
|
||||
let root_exe_path = root.join("Journal.Sidecar.exe");
|
||||
if root_exe_path.exists() {
|
||||
return Ok(root_exe_path);
|
||||
}
|
||||
|
||||
let root_publish_exe_path = root.join("publish").join("Journal.Sidecar.exe");
|
||||
if root_publish_exe_path.exists() {
|
||||
return Ok(root_publish_exe_path);
|
||||
}
|
||||
|
||||
let debug_path = root.join("Journal.Sidecar/bin/Debug/net10.0/Journal.Sidecar.exe");
|
||||
if debug_path.exists() {
|
||||
return Ok(debug_path);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user