update

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package update checks GitHub for a newer OpenDeezer release. Clients call it on startup to show a non-intrusive "update available" prompt — it never downloads or installs anything itself.

Index

Constants

View Source
const Repo = "Cycl0o0/OpenDeezer"

Repo is the GitHub owner/name that publishes releases.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Current   string `json:"current"`   // running version, e.g. "1.5.0"
	Latest    string `json:"latest"`    // latest release, e.g. "1.5.1"
	HasUpdate bool   `json:"hasUpdate"` // Latest is strictly newer than Current
	URL       string `json:"url"`       // release page to open
	Notes     string `json:"notes"`     // release notes (trimmed)
}

Info is the result of a check.

func Check

func Check(current string) (Info, error)

Check asks GitHub for the latest (non-draft, non-prerelease) release and compares it to current. A network/parse failure returns HasUpdate=false with the error, so callers can silently ignore it.

Jump to

Keyboard shortcuts

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