mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-27 07:40:05 +08:00
fix(updater): unify install lifecycle across startup and dialog paths
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user