rs
fn main() {
tauri::Builder::default()
.setup(|app| {
let handle = app.handle();
std::thread::spawn(move || {
tauri::WindowBuilder::new(
&handle,
"external", /* the unique window label */
tauri::WindowUrl::External("https://tauri.app/".parse().unwrap()),
)
.build()
.unwrap();
});
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}