// No console window on Windows release builds. #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { // `storebound desktop` reads the installed version this way (Windows, Linux; macOS reads Info.plist) if std::env::args().nth(1).as_deref() == Some("--version") { println!("storebound-desktop {}", env!("CARGO_PKG_VERSION")); return; } // Release smoke test of the exact artifact (tools/desktop-release.ts, the Forgejo workflow): sidecar handshake, // one JSON line, exit. Runs before Tauri starts, so no window opens. if std::env::args().skip(1).any(|a| a == storebound_desktop::selftest::FLAG) { std::process::exit(storebound_desktop::selftest::run()); } storebound_desktop::run(); }