Skip to content

Commit

Permalink
Add version to built binaries as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Mar 19, 2023
1 parent b1f0ca8 commit 3d509a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"sync"
)

const version = "v1.1.0"

type target struct {
goos string
goarch string
Expand Down Expand Up @@ -41,7 +43,7 @@ func main() {

for _, tar := range targets {
go func(t target) {
path := filepath.Join("release", "ghdstats-"+t.goos+"-"+t.goarch)
path := filepath.Join("release", "ghdstats-"+version+"-"+t.goos+"-"+t.goarch)
if t.goos == "windows" {
path += ".exe"
}
Expand Down

0 comments on commit 3d509a0

Please sign in to comment.