11 lines
506 B
Rust
11 lines
506 B
Rust
// No console window on Windows release builds.
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
fn main() {
|
|
// 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();
|
|
}
|