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 Newer ¶
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 ¶
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.