chore: upgrade tauri

This commit is contained in:
2024-09-16 09:26:29 +01:00
parent 5be02ca62f
commit b49144399c
13 changed files with 4678 additions and 628 deletions

View File

@ -1,8 +1,19 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use tauri::Manager;
fn main() {
tauri::Builder::default()
.setup(|app| {
#[cfg(debug_assertions)] // only include this code on debug builds
{
let window = app.get_webview_window("main").unwrap();
window.open_devtools();
window.close_devtools();
}
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}