updater

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubOwner = "doITmagic"
	GitHubRepo  = "rag-code-mcp"
)

Variables

This section is empty.

Functions

func ApplyUpdate

func ApplyUpdate(archivePath string) error

ApplyUpdate extracts the binary from the archive and replaces the current executable.

Types

type UpdateInfo

type UpdateInfo struct {
	LatestVersion string
	Tag           string
	AssetURL      string
	ChecksumURL   string
}

func CheckForUpdates

func CheckForUpdates(currentVersion string) (*UpdateInfo, error)

CheckForUpdates queries GitHub for the latest release and compares it with the current version.

func (*UpdateInfo) DownloadAndVerify

func (info *UpdateInfo) DownloadAndVerify(destPath string) error

DownloadAndVerify downloads the archive and checks its integrity.

Jump to

Keyboard shortcuts

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