how to compile to windows and macos

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-15 15:32:40 -07:00
parent 04838e6c13
commit 30632be83e
1 changed files with 7 additions and 0 deletions

View File

@ -39,3 +39,10 @@ json-readable:
diff:
git diff
# https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
build-darwin:
env GOOS=darwin GOARCH=amd64 go build
build-windows:
env GOOS=windows GOARCH=amd64 go build