Skip to content

Commit

Permalink
update build tool to build for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan Goel committed Feb 7, 2017
1 parent 0cb2bcb commit da86eb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit da86eb8

Please sign in to comment.