how to compile to windows and macos
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
04838e6c13
commit
30632be83e
7
Makefile
7
Makefile
|
@ -39,3 +39,10 @@ json-readable:
|
||||||
|
|
||||||
diff:
|
diff:
|
||||||
git 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
|
||||||
|
|
Loading…
Reference in New Issue