File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 40
40
41
41
42
42
ifeq ($(OS ) , Windows_NT)
43
+ GOFLAGS := -v -buildmode=exe
43
44
EXECUTABLE ?= gitea.exe
44
45
else
46
+ GOFLAGS := -v
45
47
EXECUTABLE ?= gitea
46
48
UNAME_S := $(shell uname -s)
47
49
ifeq ($(UNAME_S),Darwin)
54
56
55
57
GOFMT ?= gofmt -s
56
58
57
- GOFLAGS := -v
58
59
EXTRA_GOFLAGS ?=
59
60
60
61
MAKE_VERSION := $(shell $(MAKE ) -v | head -n 1)
@@ -531,7 +532,7 @@ release-windows: | $(DIST_DIRS)
531
532
@hash xgo > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
532
533
GO111MODULE=off $(GO ) get -u src.techknowlogick.com/xgo; \
533
534
fi
534
- CGO_CFLAGS=" $( CGO_CFLAGS) " GO111MODULE=off xgo -go $(XGO_VERSION ) -dest $(DIST ) /binaries -tags ' netgo osusergo $(TAGS)' -ldflags ' -linkmode external -extldflags "-static" $(LDFLAGS)' -targets ' windows/*' -out gitea-$(VERSION ) .
535
+ CGO_CFLAGS=" $( CGO_CFLAGS) " GO111MODULE=off xgo -go $(XGO_VERSION ) -buildmode exe - dest $(DIST ) /binaries -tags ' netgo osusergo $(TAGS)' -ldflags ' -linkmode external -extldflags "-static" $(LDFLAGS)' -targets ' windows/*' -out gitea-$(VERSION ) .
535
536
ifeq ($(CI ) ,drone)
536
537
cp /build/* $(DIST)/binaries
537
538
endif
You can’t perform that action at this time.
0 commit comments