pub fn restart(env: &Env)
Expand description
Restarts the currently running binary.
See current_binary
for platform specific behavior, and
tauri_utils::platform::current_exe
for possible security implications.
Examples
use tauri::{api::process::restart, Env, Manager};
tauri::Builder::default()
.setup(|app| {
restart(&app.env());
Ok(())
});