ghosttyconf --update installs the newest release from git.micw.org, --check-update only checks. The download lands next to the running binary, is started once with --version and only then replaces it. Once a day a normal start asks in the background and mentions a newer release in the header, at the top of the help and on stderr after quitting; only on a terminal and not with GHOSTTYCONF_NO_UPDATE_CHECK set. selfupdate.go is nscan's copyable template, with goca's --update spelling in the hints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 lines
262 B
Go
7 lines
262 B
Go
package main
|
|
|
|
// Version is a var, not a const, so build.sh can put the built number in via
|
|
// -ldflags "-X main.Version=…". The value here only ever shows up in a bare
|
|
// `go build`; the version actually built is the one in version.txt.
|
|
var Version = "1.0.1"
|