Skip to content

Commit

Permalink
Add win and darwin builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Serdar committed Nov 29, 2018
1 parent 9d9c24c commit 6befeca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ dist: build-prod test
{ \
tag=`git tag -l --points-at HEAD`; \
if [ ! -z $$tag ] ; then tag="-$$tag"; fi; \
tar cfz took$$tag-linux-x86_64.tar.gz took readme.md LICENSE ;\
mkdir lin ; GOOS=linux GOARCH=amd64 go build -o lin/took -ldflags "-s -w"; \
tar cfz took$$tag-linux-x86_64.tar.gz readme.md LICENSE -C lin took ;\
mkdir win ; GOOS=windows GOARCH=amd64 go build -o win/took -ldflags "-s -w" ;\
tar cfz took$$tag-windows-x86_64.tar.gz readme.md LICENSE -C win took ;\
mkdir darwin ; GOOS=darwin GOARCH=amd64 go build -o darwin/took -ldflags "-s -w" ;\
tar cfz took$$tag-darwin-x86_64.tar.gz readme.md LICENSE -C darwin took ;\
}

test:
Expand Down

0 comments on commit 6befeca

Please sign in to comment.