Compare commits
2 commits
4687dc966b
...
6a3919e95e
Author | SHA1 | Date | |
---|---|---|---|
6a3919e95e | |||
61fc21224c |
3 changed files with 7 additions and 7 deletions
|
@ -15,6 +15,8 @@ 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
|
||||||
|
@ -22,10 +24,7 @@ upx:
|
||||||
lzma: true
|
lzma: true
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: desc
|
use: gitea
|
||||||
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.Printf("Server-Version: v%s\n", metadata.GoTomatoVersion)
|
fmt.Println("Server-Version:", metadata.GoTomatoVersion)
|
||||||
fmt.Printf("Protocol-Version: v%s\n", metadata.ProtocolVersion)
|
fmt.Println("Protocol-Version:", metadata.ProtocolVersion)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,5 +2,6 @@ package metadata
|
||||||
|
|
||||||
import "strings"
|
import "strings"
|
||||||
|
|
||||||
const GoTomatoVersion = "0.1.1" // The GoTomato version
|
// This will be overwritten by goreleaser on build
|
||||||
|
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