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:
shumeiko.it
2026-11-01 00:10:22 +01:00
parent a8250cb375
commit d2ad282498
9 changed files with 47 additions and 277 deletions

View File

@@ -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"),