aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-08-13 21:18:04 -0400
committerGitHub <noreply@github.com>2020-08-13 21:18:04 -0400
commitb37c7dd384ab24b4781bc5d4a5e1f56e5b46bcee (patch)
tree14e793600021895da7b7573efb7baa931aa7712d
parent2ef318e6f1d0c674e894d2d1f25ca79498663466 (diff)
downloadgitea-b37c7dd384ab24b4781bc5d4a5e1f56e5b46bcee.tar.gz
gitea-b37c7dd384ab24b4781bc5d4a5e1f56e5b46bcee.zip
Build windows using golang 1.14 (#12489)
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 49df896229..69456c2337 100644
--- a/Makefile
+++ b/Makefile
@@ -543,7 +543,8 @@ release-windows: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
GO111MODULE=off $(GO) get -u src.techknowlogick.com/xgo; \
fi
- 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) .
+ @echo "Warning: windows version is built using golang 1.14"
+ CGO_CFLAGS="$(CGO_CFLAGS)" GO111MODULE=off xgo -go go-1.14.x -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif