Function tauri_sys::updater::install_update
source · pub async fn install_update() -> Result<(), Error>
Expand description
Install the update if there’s one available.
§Example
use tauri_sys::updater::{check_update, install_update};
let update = check_update().await?;
if update.should_update {
log::info("Installing update {:?}", update.manifest);
install_update().await?;
}