update

package
v0.35.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstallModeVerified       = "verified_installable"
	InstallModeManualUnsigned = "manual_unsigned"
	InstallModeUnavailable    = "unavailable"
)

Variables

This section is empty.

Functions

func HasUnsignedWindowsNotice

func HasUnsignedWindowsNotice(assets []ReleaseAsset) bool

func InstallerAssetName

func InstallerAssetName(release ReleaseInfo) string

func InstallerAssetScore

func InstallerAssetScore(name, contentType string) int

func IsInstallerAssetName

func IsInstallerAssetName(name string) bool

func NormalizeInstallMode

func NormalizeInstallMode(mode, downloadURL string) string

func ResolveDir

func ResolveDir(cfgPath, exeDir, localAppData, tempDir string) string

func SelectWindowsInstallerAsset

func SelectWindowsInstallerAsset(assets []ReleaseAsset) (string, string, int64)

Types

type ReleaseAsset

type ReleaseAsset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
	ContentType        string `json:"content_type"`
	Size               int64  `json:"size"`
}

type ReleaseInfo

type ReleaseInfo struct {
	Version      string
	ReleaseURL   string
	DownloadURL  string
	DownloadName string
	DownloadSize int64
	InstallMode  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL