fix(desktop): find the sidecar through Tauri's resource directory (P1.3d)
Linux packages keep resources in /usr/lib/<app> (deb) or under $APPDIR (AppImage), not next to the executable, so the shell never found service.js there. Setup now records Tauri's resource_dir and the lookup prefers it, keeping the executable-relative paths as a fallback. Drop tauri-plugin-updater: it was declared but never registered, and the updater stays disabled until release signing exists.
This commit is contained in:
@@ -138,6 +138,10 @@ pub fn run() {
|
||||
|
||||
// Auto-start an owned sidecar launch before the webview loads.
|
||||
// Its verified endpoint may differ from the preferred port.
|
||||
match app.path().resource_dir() {
|
||||
Ok(dir) => service::set_resource_dir(dir),
|
||||
Err(e) => eprintln!("[waggle] Unable to resolve the resource directory: {}", e),
|
||||
}
|
||||
let service_state = app.state::<ServiceState>();
|
||||
match service::spawn_service_sync(&service_state) {
|
||||
Ok(()) => eprintln!("[waggle] Owned sidecar spawn initiated"),
|
||||
|
||||
Reference in New Issue
Block a user