summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-03-04 18:30:02 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-03-04 18:30:02 -0800
commit0e7057a056a2a14be09e95aee4bccb1328598528 (patch)
treed0683aa2ff8844a9032d68814405352fcf42d9da
parent47a98de44b1bf6bb4cbeec5de701f722f6fdf0bd (diff)
Updated build.sh1.1.0
-rwxr-xr-xbuild.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 9e9a9c9..13de5bf 100755
--- a/build.sh
+++ b/build.sh
@@ -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