updater

package
v0.0.0-...-e5499e4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir returns the fluid data directory path for caching update checks.

func CheckLatest

func CheckLatest(currentVersion string) (string, string, bool, error)

CheckLatest queries GitHub API for the latest release. Returns (latestVersion, downloadURL, needsUpdate, error).

func MarkChecked

func MarkChecked()

MarkChecked updates the cache file timestamp.

func ShouldCheck

func ShouldCheck() bool

ShouldCheck returns true if enough time has passed since the last update check.

func Update

func Update(downloadURL string) error

Update downloads the release archive from downloadURL and replaces the current executable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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