Documentation
¶
Index ¶
- func FinalizeStagedWindowsUpdate() error
- func MaybeRunWindowsUpdateHelper() bool
- func MaybeStartBackgroundUpdate(ctx context.Context, currentVersion string)
- func PerformUpdate(ctx context.Context, src Source) error
- func TryFinalizeStagedUpdateImmediately(ctx context.Context, exePath string) (bool, error)
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinalizeStagedWindowsUpdate ¶
func FinalizeStagedWindowsUpdate() error
func MaybeRunWindowsUpdateHelper ¶ added in v0.0.12
func MaybeRunWindowsUpdateHelper() bool
MaybeRunWindowsUpdateHelper is a no-op on non-Windows platforms.
func PerformUpdate ¶
PerformUpdate downloads, verifies and installs the target version. When src.AssetURL is empty, the updater falls back to GitHub releases using src.ReleaseTag.
Types ¶
type Source ¶
type Source struct {
Version string
ReleaseTag string
AssetURL string
AssetName string
Checksum string
ChecksumURL string
Channel string
ExpectedSize int64
}
Source describes where an update should be downloaded from. When AssetURL is provided, the updater downloads directly from that URL. Otherwise, ReleaseTag (or Version) is used to locate the asset on GitHub.
Click to show internal directories.
Click to hide internal directories.