mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-19 02:02:55 +02:00
Fix release version (#815)
Reviewed-on: https://gitea.com/gitea/tea/pulls/815 Reviewed-by: TheFox0x7 <thefox0x7@noreply.gitea.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:

committed by
techknowlogick

parent
45771265c4
commit
2ca114e309
@ -58,7 +58,7 @@ builds:
|
|||||||
flags:
|
flags:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X main.Version={{ .Version }}
|
- -s -w -X code.gitea.io/tea/cmd.Version={{ .Version }}
|
||||||
binary: >-
|
binary: >-
|
||||||
{{ .ProjectName }}-
|
{{ .ProjectName }}-
|
||||||
{{- .Version }}-
|
{{- .Version }}-
|
||||||
|
@ -13,6 +13,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Version holds the current tea version
|
// Version holds the current tea version
|
||||||
|
// If the Version is moved to another package or name changed,
|
||||||
|
// build flags in .goreleaser.yaml or Makefile need to be updated accordingly.
|
||||||
var Version = "development"
|
var Version = "development"
|
||||||
|
|
||||||
// Tags holds the build tags used
|
// Tags holds the build tags used
|
||||||
|
Reference in New Issue
Block a user