Skip to content

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tzmfreedom committed Dec 10, 2016
1 parent b0e962f commit 460fa5a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

if [ $# != 1 ]; then
echo "Usage: $0 [binary name]"
exit 0
fi

GOOS=windows GOARCH=386 go build -o ./bin/$1-windows386.exe
GOOS=windows GOARCH=amd64 go build -o ./bin/$1-windows64.exe

GOOS=darwin GOARCH=386 go build -o ./bin/$1-darwin386
GOOS=darwin GOARCH=amd64 go build -o ./bin/$1-darwin64

0 comments on commit 460fa5a

Please sign in to comment.