Skip to main content

updater_install

Function updater_install 

Source
pub async fn updater_install(app: AppHandle) -> Result<(), AppError>
Expand description

Download and install the pending update.

Must be called after updater_check returned Available.

Emits updater:status events:

  1. { "status": "downloading", "progress": null } — download started.
  2. { "status": "ready" } — download + install complete; restart pending.
  3. { "status": "error", "message": "…" } — on any failure.