18 lines
553 B
Rust
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()
|
|
}
|