Documentation
¶
Overview ¶
Package selfupdate respects the owner of the running CLI installation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Installation ¶
type Installation struct {
Executable string `json:"executable"`
Owner string `json:"owner"`
Instruction string `json:"instruction"`
}
func Current ¶
func Current() (Installation, error)
func Detect ¶
func Detect(executable string, info *debug.BuildInfo) Installation
Detect says who owns the installation at executable. Desktop owns the copies it stages under its userData (cli/terminal/versions/), the one inside a macOS app bundle, and any copy with a zn.desktop.json beside it (how desktop marks the zn.exe it places on Windows, see internal/desktopcopy).