MCPcopy Create free account
hub / github.com/Roy3838/Observer / bundled_binary_path

Function bundled_binary_path

app/desktop/src/install_cli.rs:63–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63fn bundled_binary_path() -> Result<PathBuf, Box<dyn std::error::Error>> {
64 let exe_dir = std::env::current_exe()?
65 .parent()
66 .ok_or("could not get exe directory")?
67 .to_path_buf();
68
69 // Tauri bundles the sidecar without the target triple suffix in the final app
70 #[cfg(target_os = "windows")]
71 let name = "observe.exe";
72 #[cfg(not(target_os = "windows"))]
73 let name = "observe";
74
75 Ok(exe_dir.join(name))
76}
77
78fn install_destination() -> Result<(PathBuf, String), Box<dyn std::error::Error>> {
79 #[cfg(target_os = "windows")]

Callers 1

install_cli_innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected