From 30632be83e029b604053fce64ddcbb75b87762de Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 15 May 2019 15:32:40 -0700 Subject: [PATCH] how to compile to windows and macos Signed-off-by: Jeff Carr --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index d1b8718..8b64c98 100644 --- a/Makefile +++ b/Makefile @@ -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