Updated build.sh

This commit is contained in:
Caleb Bassi 2018-03-04 18:30:02 -08:00
parent 47a98de44b
commit 0e7057a056

View File

@ -1,15 +1,25 @@
#!/usr/bin/env bash
# Build Steps
# 1. update version number in `gotop.go`, `PKGBUILD`, and `install.sh`
# 2. run this script
# 3. publish binaries on GitHub
# 4. push changes to GitHub
# 5. push `PKGBUILD` to AUR
VERSION=$(go run gotop.go -v)
env GOOS=darwin GOARCH=amd64 go build
mkdir builds
cd builds
env GOOS=darwin GOARCH=amd64 go build ../
tar czf gotop-$VERSION-darwin_amd64.tgz gotop
rm gotop
env GOOS=linux GOARCH=386 go build
env GOOS=linux GOARCH=386 go build ../
tar czf gotop-$VERSION-linux_386.tgz gotop
rm gotop
env GOOS=linux GOARCH=amd64 go build
env GOOS=linux GOARCH=amd64 go build ../
tar czf gotop-$VERSION-linux_amd64.tgz gotop
rm gotop