updater

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Repository for releases
	GitHubOwner = "rendis"
	GitHubRepo  = "pdf-forge"
)

Variables

This section is empty.

Functions

func GetAssetName

func GetAssetName() string

GetAssetName returns the expected asset name for the current platform

func SelfUpdate

func SelfUpdate(currentVersion string) error

SelfUpdate updates the CLI binary to the latest version

Types

type CheckResult

type CheckResult struct {
	CurrentVersion string
	LatestVersion  string
	UpdateURL      string
	HasUpdate      bool
}

CheckResult represents the result of checking for updates

func CheckForUpdate

func CheckForUpdate(currentVersion string) (*CheckResult, error)

CheckForUpdate checks if a newer version is available

Jump to

Keyboard shortcuts

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