This commit is contained in:
fengchuanhn@gmail.com
2026-05-22 14:40:32 +08:00
parent eba781d15d
commit ce1fe99883
12 changed files with 277 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ pub mod auth_session;
pub mod chat;
pub mod commands;
pub mod cover_python;
pub mod device_serial;
pub mod ffmpeg;
pub mod http;
pub mod js_runtime;
@@ -38,6 +39,7 @@ pub fn run() {
.manage(publish_store::PublishStore::new())
.setup(|app| {
let handle = app.handle().clone();
let heartbeat_handle = handle.clone();
let oem_id = handle
.path()
.app_data_dir()
@@ -64,6 +66,8 @@ pub fn run() {
Ok::<(), String>(())
})
.map_err(|e| -> Box<dyn std::error::Error> { e.into() })?;
api_client::spawn_heartbeat_loop(heartbeat_handle);
Ok(())
})
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {