From da86eb86b791df6b62b9c66936a5b50527936fad Mon Sep 17 00:00:00 2001 From: Karan Goel Date: Mon, 6 Feb 2017 21:25:30 -0800 Subject: [PATCH] update build tool to build for all platforms --- tool.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tool.sh b/tool.sh index 1e9cd89..692a6ba 100755 --- a/tool.sh +++ b/tool.sh @@ -18,7 +18,12 @@ EOF function build { - go build -o build/joe joe.go utils.go + GOOS=windows GOARCH=386 go build -o build/joe-x86.exe joe.go utils.go + GOOS=windows GOARCH=amd64 go build -o build/joe.exe joe.go utils.go + GOOS=linux GOARCH=386 go build -o build/joe-x86 joe.go utils.go + GOOS=linux GOARCH=amd64 go build -o build/joe joe.go utils.go + GOOS=darwin GOARCH=386 go build -o build/joe-darwin-x86 joe.go utils.go + GOOS=darwin GOARCH=amd64 go build -o build/joe-darwin joe.go utils.go printf 'joe built\n'; }