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