111
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user