This commit is contained in:
fengchuanhn@gmail.com
2026-05-22 18:09:09 +08:00
parent 5a9e024c0c
commit 1368db488f
6 changed files with 183 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ pub mod ffmpeg;
pub mod http;
pub mod js_runtime;
pub mod nodejs;
pub mod agent_id;
pub mod oem_context;
pub mod oem_id;
pub mod oss;
@@ -40,12 +41,9 @@ pub fn run() {
.setup(|app| {
let handle = app.handle().clone();
let heartbeat_handle = handle.clone();
let oem_id = handle
.path()
.app_data_dir()
.map(|dir| oem_id::read_oem_id_file(&dir.join(oem_id::OEM_FILE_NAME)))
.unwrap_or(oem_id::DEFAULT_OEM_ID);
app.manage(oem_context::OemContext { oem_id });
let oem_id = oem_id::load_oem_id(&handle);
let agent_id = agent_id::load_agent_id(&handle);
app.manage(oem_context::OemContext { oem_id, agent_id });
tauri::async_runtime::block_on(async move {
let app_config = handle.state::<app_config::AppConfig>();