From dd186e388d31e8ff65c4da44d210704511f390b3 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 16 Mar 2019 13:45:11 +0800 Subject: [PATCH] chore: remove specific the arch of OS --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5959b02..e8d9787 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,6 @@ DEPLOY_IMAGE := $(EXECUTABLE) GOFMT ?= gofmt "-s" TARGETS ?= linux darwin windows openbsd -ARCHS ?= amd64 386 arm arm64 PACKAGES ?= $(shell $(GO) list ./...) GOFILES := $(shell find . -name "*.go" -type f) TAGS ?= sqlite @@ -111,7 +110,7 @@ release-build: @hash gox > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ $(GO) get -u github.com/mitchellh/gox; \ fi - gox -os="$(TARGETS)" -arch="$(ARCHS)" -tags="$(TAGS)" -ldflags="$(EXTLDFLAGS)-s -w $(LDFLAGS)" -output="$(DIST)/binaries/$(EXECUTABLE)-$(VERSION)-{{.OS}}-{{.Arch}}" + gox -os="$(TARGETS)" -tags="$(TAGS)" -ldflags="$(EXTLDFLAGS)-s -w $(LDFLAGS)" -output="$(DIST)/binaries/$(EXECUTABLE)-$(VERSION)-{{.OS}}-{{.Arch}}" release-copy: $(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)