Added build script

This commit is contained in:
Caleb Bassi 2018-02-21 13:08:22 -08:00
parent c267d874ee
commit ffd58e249c
1 changed files with 15 additions and 0 deletions

15
build.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
VERSION=$(go run gotop.go -v)
env GOOS=darwin GOARCH=amd64 go build
tar czf gotop-$VERSION-darwin_amd64.tgz gotop
rm gotop
env GOOS=linux GOARCH=386 go build
tar czf gotop-$VERSION-linux_386.tgz gotop
rm gotop
env GOOS=linux GOARCH=amd64 go build
tar czf gotop-$VERSION-linux_amd64.tgz gotop
rm gotop