Files
nscan/version.go
mikeandClaude Opus 5.5 c91dbe9f7d Add self-update, release 1.0.2
nscan update installs the newest release from git.micw.org, nscan
update -c only checks; --update and --check-update work as well. The
download lands next to the running binary, is started once with
--version and only then replaces it.

Once a day an ordinary run asks in the background and mentions a newer
release in the title bar and on stderr, only on a terminal and not with
NSCAN_NO_UPDATE_CHECK set. selfupdate.go is goca's copyable template.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 16:25:36 +01:00

7 lines
257 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 shows up in a bare
// `go build`; the version actually built is the one in version.txt.
var Version = "1.0.2"