From: 6543 <6543@obermui.de> Date: Thu, 25 Feb 2021 14:29:03 +0000 (+0100) Subject: Build for only available darwin target (#14771) (#14798) X-Git-Tag: v1.13.3~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f389c5dfae48013d215b1410664c70f31707821;p=gitea.git Build for only available darwin target (#14771) (#14798) Co-authored-by: techknowlogick --- diff --git a/Makefile b/Makefile index 20decf16a6..ab5fd9a5dd 100644 --- a/Makefile +++ b/Makefile @@ -585,7 +585,7 @@ release-darwin: | $(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 '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) . + CGO_CFLAGS="$(CGO_CFLAGS)" GO111MODULE=off xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/amd64' -out gitea-$(VERSION) . ifeq ($(CI),drone) cp /build/* $(DIST)/binaries endif