2024-11-10 19:27:13 +08:00
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
|
|
pub fn run() {
|
2024-11-11 20:37:45 +08:00
|
|
|
tauri::Builder::default()
|
|
|
|
.plugin(tauri_plugin_http::init())
|
|
|
|
.setup(|app| {
|
|
|
|
if cfg!(debug_assertions) {
|
|
|
|
app.handle().plugin(
|
|
|
|
tauri_plugin_log::Builder::default()
|
|
|
|
.level(log::LevelFilter::Info)
|
|
|
|
.build(),
|
|
|
|
)?;
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
})
|
|
|
|
.run(tauri::generate_context!())
|
|
|
|
.expect("error while running tauri application");
|
2024-11-10 19:27:13 +08:00
|
|
|
}
|