summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-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