summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-05-23 22:48:19 -0700
committerCaleb Bassi <calebjbassi@gmail.com>2018-05-23 22:48:19 -0700
commit2b485e00b349890e137e981203f4883827eeeae7 (patch)
tree091222846950619567f5fa859b86dfbedec0fab0
parentba1ce86effbc57d090fb4e77da0470f23d815119 (diff)
Fix building issues1.4.0
* can't use goreleaser with darwin builds so we have to manual build them ourselves
-rw-r--r--build/.goreleaser.yml7
-rwxr-xr-xbuild/build-darwin-cgo.sh8
-rw-r--r--build/build_steps.txt4
-rw-r--r--main.go2
4 files changed, 10 insertions, 11 deletions
diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml
index 054b20d..9bc1d5d 100644
--- a/build/.goreleaser.yml
+++ b/build/.goreleaser.yml
@@ -1,7 +1,6 @@
builds:
- binary: gotop
goos:
- - darwin
- linux
goarch:
- amd64
@@ -21,9 +20,3 @@ archive:
format: tgz
files:
- none*
-brew:
- github:
- owner: cjbassi
- name: homebrew-gotop
- description: "A terminal based graphical activity monitor inspired by gtop and vtop"
- homepage: "https://github.com/cjbassi/gotop"
diff --git a/build/build-darwin-cgo.sh b/build/build-darwin-cgo.sh
index 0d25779..29944a2 100755
--- a/build/build-darwin-cgo.sh
+++ b/build/build-darwin-cgo.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
-xgo --targets="darwin/386,darwin/amd64" $PWD
-mv gotop-darwin-10.6-386 dist/darwin_386/gotop
-mv gotop-darwin-10.6-amd64 dist/darwin_amd64/gotop
+version=$(go run main.go -v)
+
+xgo --targets="darwin/386,darwin/amd64" .
+tar czf gotop_$version_darwin_386.tgz gotop-darwin-10.6-386
+tar czf gotop_$version_darwin_amd64.tgz gotop-darwin-10.6-amd64
diff --git a/build/build_steps.txt b/build/build_steps.txt
index 71eda3a..812e608 100644
--- a/build/build_steps.txt
+++ b/build/build_steps.txt
@@ -1,8 +1,12 @@
need to have goreleaser, xgo, and dockerd installed
make sure gotop builds and runs
+update version number in main.go
+add, commit, and push change
tag commit with version number
export GitHub token in shell
make sure dockerd is running
run `goreleaser --rm-dist -f build/.goreleaser.yml`
+update GitHub release with Darwin builds
+update homebrew-gotop
update AUR package
diff --git a/main.go b/main.go
index fd8ff02..662f13e 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,7 @@ import (
"github.com/docopt/docopt-go"
)
-var version = "updated by goreleaser"
+var version = "1.4.0"
var (
termResized = make(chan bool, 1)