updater

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(version, owner, repo, teamID string) *Service

func (*Service) ApplyUpdate

func (s *Service) ApplyUpdate(ctx context.Context)

ApplyUpdate checks for and applies the latest update immediately (used by the manual "Check for Updates" tray menu item).

func (*Service) CheckForUpdate

func (s *Service) CheckForUpdate(ctx context.Context) (*UpdateInfo, error)

CheckForUpdate queries GitHub for the latest release and returns update info if a newer version is available.

func (*Service) GetCurrentVersion

func (s *Service) GetCurrentVersion() string

func (*Service) Start

func (s *Service) Start(ctx context.Context)

Start runs the silent background update loop. It checks for updates after an initial delay and then every checkInterval. When a newer version is found it downloads, replaces the .app bundle, and restarts.

type UpdateInfo

type UpdateInfo struct {
	Version      string `json:"version"`
	ReleaseNotes string `json:"releaseNotes"`
}

Jump to

Keyboard shortcuts

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