Open gaoyouAwait opened 3 days ago
The tauri v1 version used on Windows11.
main.rs :
use tauri::{Manager}; #[derive(Clone, serde::Serialize)] struct Payload { args: Vec<String>, cwd: String, } fn main() { tauri::Builder::default() .plugin(tauri_plugin_single_instance::init(|app, argv, cwd| { println!("{}, {argv:?}, {cwd}", app.package_info().name); app.emit_all("single-instance", Payload { args: argv, cwd }).unwrap(); })) .setup(|app| { set_window_shadow(app); Ok(()) }) .run(tauri::generate_context!()) .expect("error while running tauri application"); }
Do I need to modify some configurations?
I think this will help you.
Pass: changeme If you don't have the c compliator, install it.(gcc or clang)
The tauri v1 version used on Windows11.
main.rs :
Do I need to modify some configurations?