Skip to content

Commit

Permalink
Fix up Makefile for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Oct 14, 2015
1 parent 0216e45 commit 3b23fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ local: *.go
release:
rm -rf build release && mkdir build release
for os in linux freebsd darwin ; do \
GOOS=$$os ARCH=amd64 godep go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$$os-amd64 ; \
GOOS=$$os ARCH=amd64 go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$$os-amd64 ; \
tar --transform 's|^build/||' --transform 's|-.*||' -czvf release/kuisp-$(VERSION)-$$os-amd64.tar.gz build/kuisp-$$os-amd64 README.md LICENSE ; \
done
GOOS=windows ARCH=amd64 godep go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$(VERSION)-windows-amd64.exe
GOOS=windows ARCH=amd64 go build -ldflags "-X main.Version=$(VERSION)" -o build/kuisp-$(VERSION)-windows-amd64.exe
zip release/kuisp-$(VERSION)-windows-amd64.zip build/kuisp-$(VERSION)-windows-amd64.exe README.md LICENSE && \
echo -e "@ build/kuisp-$(VERSION)-windows-amd64.exe\n@=kuisp.exe" | zipnote -w release/kuisp-$(VERSION)-windows-amd64.zip
go get github.com/progrium/gh-release/...
Expand Down

0 comments on commit 3b23fca

Please sign in to comment.