Documentation
¶
Index ¶
- func HandleInternalCommand(context.Context, []string) (bool, error)
- func RepairDesktopRuntimeIfNeeded(context.Context, io.Writer) error
- func Run(ctx context.Context, output io.Writer) error
- func RunLocalArchive(ctx context.Context, archivePath, checksumPath, targetVersion string, ...) error
- func RunWithProgress(ctx context.Context, output io.Writer, progressOutput io.Writer) error
- type CheckResult
- type UpdateProgressEvent
- type UpdateProgressStage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepairDesktopRuntimeIfNeeded ¶ added in v0.7.5
func RunLocalArchive ¶ added in v0.9.0
func RunLocalArchive(ctx context.Context, archivePath, checksumPath, targetVersion string, output io.Writer) error
RunLocalArchive lets Windows Setup hand an already verified/downloaded Release artifact to the same generation Update Engine used by online self-update. The legacy layout never calls this entrypoint; it is only valid once stable shims + active-version.json have established generation ownership.
Types ¶
type CheckResult ¶ added in v0.7.0
type CheckResult struct {
CurrentVersion string `json:"current_version"`
LatestVersion string `json:"latest_version"`
DesktopCurrentVersion string `json:"desktop_current_version,omitempty"`
UpdateAvailable bool `json:"update_available"`
DesktopUpdateAvailable bool `json:"desktop_update_available,omitempty"`
Message string `json:"message"`
}
type UpdateProgressEvent ¶ added in v0.9.0
type UpdateProgressEvent struct {
SchemaVersion int `json:"schema_version"`
Type string `json:"type"`
Stage UpdateProgressStage `json:"stage,omitempty"`
CurrentVersion string `json:"current_version,omitempty"`
TargetVersion string `json:"target_version,omitempty"`
Asset string `json:"asset,omitempty"`
Bytes int64 `json:"bytes,omitempty"`
TotalBytes int64 `json:"total_bytes,omitempty"`
Error string `json:"error,omitempty"`
}
type UpdateProgressStage ¶ added in v0.9.0
type UpdateProgressStage string
const ( UpdateStageChecking UpdateProgressStage = "checking" UpdateStageDownloading UpdateProgressStage = "downloading" UpdateStageVerifying UpdateProgressStage = "verifying" UpdateStageExtracting UpdateProgressStage = "extracting" UpdateStageInstalling UpdateProgressStage = "installing" UpdateStageUpdatingSkill UpdateProgressStage = "updating_skills" UpdateStageRestarting UpdateProgressStage = "restarting" )
Click to show internal directories.
Click to hide internal directories.