diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a3190f6..6cc80cd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -15,8 +15,6 @@ builds: - arm64 env: - CGO_ENABLED=0 - ldflags: - - -s -w -X git.smsvc.net/pomodoro/GoTomato/internal/metadata.GoTomatoVersion={{.Version}} upx: - enabled: true diff --git a/cmd/server/main.go b/cmd/server/main.go index a109f38..29241f0 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -28,8 +28,8 @@ func Start() { // show server and protocl version and exit if *showVersionFlag { - fmt.Println("Server-Version:", metadata.GoTomatoVersion) - fmt.Println("Protocol-Version:", metadata.ProtocolVersion) + fmt.Printf("Server-Version: v%s\n", metadata.GoTomatoVersion) + fmt.Printf("Protocol-Version: v%s\n", metadata.ProtocolVersion) os.Exit(0) } diff --git a/internal/metadata/version.go b/internal/metadata/version.go index ecac17b..22e394e 100644 --- a/internal/metadata/version.go +++ b/internal/metadata/version.go @@ -2,6 +2,5 @@ package metadata import "strings" -// This will be overwritten by goreleaser on build -var GoTomatoVersion = "devel" // The GoTomato version +const GoTomatoVersion = "0.1.1" // The GoTomato version var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version