Skip to content

Instantly share code, notes, and snippets.

@twinbird twinbird/
Created Apr 17, 2016

What would you like to do?
if [ $# != 1 ]; then
echo "Usage: $0 [binary name]"
exit 0
GOOS=linux GOARCH=amd64 go build -o ./bin/linux64/$1
GOOS=linux GOARCH=386 go build -o ./bin/linux386/$1
GOOS=windows GOARCH=386 go build -o ./bin/windows386/$1.exe
GOOS=windows GOARCH=amd64 go build -o ./bin/windows64/$1.exe
GOOS=darwin GOARCH=386 go build -o ./bin/darwin386/$1
GOOS=darwin GOARCH=amd64 go build -o ./bin/darwin64/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.