Files
yaoayanui/src-tauri/src/main.rs
949036910@qq.com 53d0a6eb5f 111
2026-05-30 12:46:13 +08:00

18 lines
553 B
Rust

// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// 心跳定时任务在 `tauri_app_lib::run` → `api_client::spawn_heartbeat_loop` 中启动(每 30 秒)。
fn main() {
#[cfg(all(windows, not(debug_assertions)))]
{
if !tauri_app_lib::updater::launched_by_updater() {
if tauri_app_lib::updater::try_launch_updater().is_ok() {
std::process::exit(0);
}
}
}
tauri_app_lib::run()
}