18 lines
656 B
Rust
18 lines
656 B
Rust
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
// use tauri::command;
|
|
use tauri::Manager;
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.setup(|app| {
|
|
#[cfg(debug_assertions)]
|
|
app.get_window("main").unwrap().open_devtools(); // `main` is the first window from tauri.conf.json without an explicit label
|
|
Ok(())
|
|
})
|
|
// .invoke_handler(tauri::generate_handler![greet, run_python_script])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
|
|
}
|