summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-02 20:47:10 -0600
committerJeff Carr <[email protected]>2024-03-02 20:47:10 -0600
commit1a90d070bb298d3109d42e92acfdeea82cf3eef0 (patch)
treea7059b8fd3d14741d43595204015a0abf6014ba4 /main.go
parentd60a565d889461fb04063d831cd63334156cd091 (diff)
keep trying to increment versions
Diffstat (limited to 'main.go')
-rw-r--r--main.go21
1 files changed, 3 insertions, 18 deletions
diff --git a/main.go b/main.go
index fd1d091..2d261dd 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,6 @@
package main
import (
- "embed"
"os"
"path/filepath"
@@ -12,23 +11,13 @@ import (
var VERSION string
-// TODO: autocompute these in the gui
-var releaseReasonS string
-var releaseVersion string
-var widgetVersion string
-
-//go:embed resources/*
-var resToolkit embed.FS
-
func main() {
me = new(autoType)
- // TODO: autocompute these in the gui
- releaseReasonS = os.Getenv("GUIRELEASE_REASON")
- releaseVersion = os.Getenv("GUIRELEASE_VERSION")
- widgetVersion = os.Getenv("GUIRELEASE_WIDGET")
+ // save the ENV var here
+ me.releaseReasonS = os.Getenv("GUIRELEASE_REASON")
- if releaseVersion == "" {
+ if me.releaseReasonS == "" {
log.Info("GUIRELEASE_VERSION not set")
os.Exit(0)
}
@@ -39,7 +28,6 @@ func main() {
os.Unsetenv("GO111MODULE")
me.myGui = gui.New()
- me.myGui.InitEmbed(resToolkit)
me.myGui.Default()
// our main window
@@ -66,9 +54,6 @@ func main() {
os.Exit(0)
}
- // save the ENV var here
- me.releaseReasonS = releaseReasonS
-
log.Info("Creating the Release Window")
// initialize the repo list window