fix(updater): unify install lifecycle across startup and dialog paths

This commit is contained in:
Tunglies
2026-11-26 23:29:46 +08:00
parent 8fe3cc1fe3
commit 2905b0a194
3 changed files with 46 additions and 22 deletions
+14 -3
View File
@@ -260,10 +260,16 @@ export type DnsOverrideOutcome =
| { status: 'applied' }
| { status: 'confirmation_required'; source: string }
/** Same wire shape as the updater plugin's JS `DownloadEvent`. */
/**
* Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
* install starts.
*/
export type DownloadEvent = DownloadEvent_Serialize | DownloadEvent_Deserialize
/** Same wire shape as the updater plugin's JS `DownloadEvent`. */
/**
* Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
* install starts.
*/
export type DownloadEvent_Deserialize =
| {
event: 'Started'
@@ -278,8 +284,12 @@ export type DownloadEvent_Deserialize =
}
}
| { event: 'Finished' }
| { event: 'Installing' }
/** Same wire shape as the updater plugin's JS `DownloadEvent`. */
/**
* Same wire shape as the updater plugin's JS `DownloadEvent`, plus `Installing` when the
* install starts.
*/
export type DownloadEvent_Serialize =
| {
event: 'Started'
@@ -294,6 +304,7 @@ export type DownloadEvent_Serialize =
}
}
| { event: 'Finished' }
| { event: 'Installing' }
/** Operation associated with a pending failure. */
export type FailedOperation =