Created
May 11, 2013 18:54
-
-
Save jahfer/5560980 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goxc() { | |
echo "+-BUILD START-----------------------------------------------------------------+" | |
echo "Building Linux binary..." | |
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build -o $1.linux $1.go | |
echo "Building OS X binary..." | |
go build $1.go | |
echo "Building Windows binary..." | |
GOOS=windows GOARCH=386 go build -o $1.exe $1.go | |
echo "+-BUILD COMPLETE--------------------------------------------------------------+" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment