Skip to main content

updater_check

Function updater_check 

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

Check the configured update endpoint for a newer release.

Emits updater:status events:

  1. { "status": "checking" } — immediately on entry.
  2. { "status": "available", "version": "…", "notes": "…" } — when a newer version is found.
  3. { "status": "upToDate" } — when already on latest.
  4. { "status": "error", "message": "…" } — on any failure.

Returns the final UpdateStatus for callers who prefer a synchronous result (the frontend can use either the return value or the events).