goreleaser now sets version during building

This commit is contained in:
Caleb Bassi 2018-05-11 00:27:21 -07:00
parent da6f6d28f4
commit 847b8022b2
2 changed files with 4 additions and 7 deletions

View File

@ -1,10 +1,7 @@
make sure gotop builds and runs
update version number in 'main.go' and 'scripts/download.sh'
commit changes
tag commit with latest version number
tag commit with version number
export GitHub token in shell
run `sudo dockerd`
run `goreleaser`
run `rm -r dist`
run `goreleaser --rm-dist`
run `git push`
update AUR package

View File

@ -15,7 +15,7 @@ import (
"github.com/docopt/docopt-go"
)
const VERSION = "1.2.15"
var version = "updated by goreleaser"
var (
termResized = make(chan bool, 1)
@ -65,7 +65,7 @@ Colorschemes:
monokai
`
args, _ := docopt.ParseArgs(usage, os.Args[1:], VERSION)
args, _ := docopt.ParseArgs(usage, os.Args[1:], version)
if val, _ := args["--color"]; val != nil {
handleColorscheme(val.(string))