Last active
February 28, 2016 13:44
-
-
Save sebastianvoss/6506a57900ab8100bab2 to your computer and use it in GitHub Desktop.
GO cross-compile
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
env GOOS=windows GOARCH=amd64 go build -v -o $GOPATH/bin/<app>_windows_amd64.exe <package> | |
env GOOS=linux GOARCH=amd64 go build -v -o $GOPATH/bin/<app>_linux_amd64 <package> | |
env GOOS=darwin GOARCH=amd64 go build -v -o $GOPATH/bin/<app>_darwin_amd64 <package> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment