diff --git a/build.sh b/build.sh index f386aad..6c50d42 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Build Steps -# 1. update version number in `gotop.go` and `install.sh` +# 1. update version number in `gotop.go` and `download.sh` # 2. run this script # 3. publish binaries on GitHub # 4. push changes to GitHub @@ -11,8 +11,8 @@ VERSION=$(go run gotop.go -v) -mkdir builds -cd builds +mkdir build +cd build env GOOS=darwin GOARCH=amd64 go build ../ tar czf gotop-$VERSION-darwin_amd64.tgz gotop diff --git a/download.sh b/download.sh index 2d0ca7f..417ba20 100755 --- a/download.sh +++ b/download.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION=1.1.1 +VERSION=1.2.1 download() { curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop-$VERSION-${1}.tgz > gotop.tgz diff --git a/gotop.go b/gotop.go index e25841a..6f67906 100644 --- a/gotop.go +++ b/gotop.go @@ -14,7 +14,7 @@ import ( "github.com/docopt/docopt-go" ) -const VERSION = "1.1.1" +const VERSION = "1.2.1" var ( termResized = make(chan bool, 1)