File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ JAVASCRIPTS :=
11
11
12
12
VERSION = $(shell git describe --tags --always)
13
13
14
- LDFLAGS += -X "code.gitea.io/gitea.Version=$(VERSION ) "
15
- LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildTime=$(DATE ) "
16
- LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildGitHash=$(SHA ) "
14
+ LDFLAGS += -X "main.Version=$(VERSION ) "
17
15
18
16
TARGETS ?= linux/*,darwin/*,windows/*
19
17
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
@@ -37,6 +35,7 @@ all: build
37
35
clean :
38
36
go clean -i ./...
39
37
rm -rf $(EXECUTABLE ) $(DIST )
38
+ rm templates/.VERSION
40
39
41
40
.PHONY : fmt
42
41
fmt :
@@ -87,11 +86,14 @@ install: $(wildcard *.go)
87
86
go install -v -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)'
88
87
89
88
.PHONY : build
90
- build : $(EXECUTABLE )
89
+ build : $(EXECUTABLE ) templates/.VERSION
91
90
92
91
$(EXECUTABLE ) : $(wildcard * .go)
93
92
go build -v -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)' -o $@
94
93
94
+ templates/.VERSION :
95
+ echo -n $(VERSION ) > $@
96
+
95
97
.PHONY : release
96
98
release : release-build release-copy release-check
97
99
Original file line number Diff line number Diff line change 1
- 0 .9.99.0915
1
+ v0 .9.99-212-g2c92e45
You can’t perform that action at this time.
0 commit comments