This commit is contained in:
949036910@qq.com
2026-05-30 12:46:13 +08:00
parent 58240c3d76
commit 53d0a6eb5f
11 changed files with 536 additions and 24 deletions

View File

@@ -4,5 +4,14 @@
// 心跳定时任务在 `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()
}