]> source.dussan.org Git - gitea.git/commitdiff
Build for only available darwin target (#14771) (#14798)
author6543 <6543@obermui.de>
Thu, 25 Feb 2021 14:29:03 +0000 (15:29 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Feb 2021 14:29:03 +0000 (15:29 +0100)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Makefile

index 20decf16a6116a9078b7f3b8f2ad9e74a6c97bd9..ab5fd9a5dd8fc12f1298062c8fe18b2804b65967 100644 (file)
--- 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