From 2c1cd3343bfc0d3c032965da9eed62ea511bb3b8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 28 Feb 2024 22:01:32 -0600 Subject: make the version an ldflag --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 5cc270d..fd1d091 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,8 @@ import ( "go.wit.com/log" ) +var VERSION string + // TODO: autocompute these in the gui var releaseReasonS string var releaseVersion string @@ -41,7 +43,7 @@ func main() { me.myGui.Default() // our main window - me.mainWindow = me.myGui.NewWindow("GUI release manager") + me.mainWindow = me.myGui.NewWindow("GUI release manager " + VERSION) me.mainBox = me.mainWindow.NewBox("bw hbox", true) // sanity check of things that might be around that mess -- cgit v1.2.3