Skip to content

Commit

Permalink
feat: update to use goreleaser maintained version number
Browse files Browse the repository at this point in the history
  • Loading branch information
danstis committed Jul 15, 2023
1 parent 7e309b2 commit 0abd203
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ import (
"log"
"time"

"fyne.io/systray"
"github.com/BurntSushi/toml"
ico "github.com/Kodeworks/golang-image-ico"
"github.com/fogleman/gg"
"fyne.io/systray"
"gopkg.in/resty.v1"
)

// Version contains the package version
var Version = "0.0.0-dev"
// Version info maintained by goreleaser: https://goreleaser.com/cookbooks/using-main.version/
var (
version = "dev"
)

const (
configFile = "config.toml"
Expand Down Expand Up @@ -65,7 +67,7 @@ func onReady() {
updateIcon(0, config.HighlightThreshold)
mTitle := systray.AddMenuItem("Toggl Weekly Tracker", "Title")
mTitle.Disable()
mVersion := systray.AddMenuItem(fmt.Sprintf("v%v", Version), "Version")
mVersion := systray.AddMenuItem(fmt.Sprintf("v%v", version), "Version")
mVersion.Disable()
systray.AddSeparator()
systray.SetTitle("Toggl Weekly Time")
Expand Down

0 comments on commit 0abd203

Please sign in to comment.