selfupdate

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package selfupdate checks GitHub for a newer cuxdeck release and, when asked, upgrades in place. It only ever *installs* through Homebrew — the same channel the app was shipped on — so a self-update is just `brew upgrade` plus a restart, never a hand-rolled binary swap. On a non-Homebrew install it reports the new version but leaves installing to the user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrewManaged

func BrewManaged() bool

BrewManaged reports whether this install came from the Homebrew cask (the only channel we can safely upgrade in place).

func Latest

func Latest(ctx context.Context) (string, error)

Latest returns the newest published release version (no leading "v").

func Method

func Method() string

Method describes how an update would be applied on this install.

func Newer

func Newer(current, latest string) bool

Newer reports whether latest is a higher release than current. A non-release current ("dev", "") is never considered outdated — those are source builds, not something to auto-upgrade over.

func Upgrade

func Upgrade(ctx context.Context) error

Upgrade runs `brew update` then `brew upgrade --cask cuxdeck`, and clears the quarantine flag off the freshly-installed app so launchd can exec the ad-hoc-signed binary. Only valid when BrewManaged. The caller restarts the process afterwards (launchd KeepAlive brings it back on a clean exit, now running the new binary).

Types

This section is empty.

Jump to

Keyboard shortcuts

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