diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-03-04 18:30:02 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-03-04 18:30:02 -0800 |
commit | 0e7057a056a2a14be09e95aee4bccb1328598528 (patch) | |
tree | d0683aa2ff8844a9032d68814405352fcf42d9da | |
parent | 47a98de44b1bf6bb4cbeec5de701f722f6fdf0bd (diff) |
Updated build.sh1.1.0
-rwxr-xr-x | build.sh | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 |