Compare commits
No commits in common. "3a5deffd2d16c6fb0fddd9a628c09c0360f89af2" and "783d158e9231a4e95276c50decb17ecb427a4234" have entirely different histories.
3a5deffd2d
...
783d158e92
3 changed files with 6 additions and 6 deletions
|
@ -15,8 +15,6 @@ builds:
|
||||||
- arm64
|
- arm64
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
ldflags:
|
|
||||||
- -s -w -X git.smsvc.net/pomodoro/GoTomato/internal/metadata.GoTomatoVersion={{.Version}}
|
|
||||||
|
|
||||||
upx:
|
upx:
|
||||||
- enabled: true
|
- enabled: true
|
||||||
|
@ -25,6 +23,9 @@ upx:
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: desc
|
sort: desc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- "bump version to"
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: binary
|
- format: binary
|
||||||
|
|
|
@ -28,8 +28,8 @@ func Start() {
|
||||||
|
|
||||||
// show server and protocl version and exit
|
// show server and protocl version and exit
|
||||||
if *showVersionFlag {
|
if *showVersionFlag {
|
||||||
fmt.Println("Server-Version:", metadata.GoTomatoVersion)
|
fmt.Printf("Server-Version: v%s\n", metadata.GoTomatoVersion)
|
||||||
fmt.Println("Protocol-Version:", metadata.ProtocolVersion)
|
fmt.Printf("Protocol-Version: v%s\n", metadata.ProtocolVersion)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,5 @@ package metadata
|
||||||
|
|
||||||
import "strings"
|
import "strings"
|
||||||
|
|
||||||
// This will be overwritten by goreleaser on build
|
const GoTomatoVersion = "0.1.1" // The GoTomato version
|
||||||
var GoTomatoVersion = "devel" // The GoTomato version
|
|
||||||
var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version
|
var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version
|
||||||
|
|
Loading…
Reference in a new issue