From 1c903416d4cfd16dd1df5dd3431317b8979b7490 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Thu, 10 May 2018 00:12:00 -0700 Subject: [PATCH] tgz releases --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index e0975a0..049a6f0 100644 --- a/Makefile +++ b/Makefile @@ -13,9 +13,10 @@ comply: assets $(GO_SOURCES) dist: clean mkdir dist - GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 github.com/strongdm/comply/cmd/comply - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 github.com/strongdm/comply/cmd/comply - + GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 github.com/strongdm/comply/cmd/comply + GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 github.com/strongdm/comply/cmd/comply + cd dist && tar -czvf comply-$(VERSION)-darwin-amd64.tgz comply-$(VERSION)-darwin-amd64 + cd dist && tar -czvf comply-$(VERSION)-linux-amd64.tgz comply-$(VERSION)-linux-amd64 clean: rm -rf dist rm -f comply @@ -57,16 +58,16 @@ release: dist gh-release --user strongdm \ --repo comply \ --tag $(VERSION) \ - --name comply-$(VERSION)-darwin-amd64 \ - --file dist/comply-$(VERSION)-darwin-amd64 + --name comply-$(VERSION)-darwin-amd64.tgz \ + --file dist/comply-$(VERSION)-darwin-amd64.tgz github-release upload \ --security-token $$GH_LOGIN \ --user strongdm \ --repo comply \ --tag $(VERSION) \ - --name comply-$(VERSION)-linux-amd64 \ - --file dist/comply-$(VERSION)-linux-amd64 + --name comply-$(VERSION)-linux-amd64.tgz \ + --file dist/comply-$(VERSION)-linux-amd64.tgz gh-release: go get -u github.com/aktau/github-release \ No newline at end of file