diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-05-23 21:46:53 -0700 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-05-23 21:46:53 -0700 |
commit | 84e070392e33f3815cba0f31500cc3283ed1a87b (patch) | |
tree | 7f8576082e77da3516801743af10ff8676064e08 /build | |
parent | bed05dc4253125bc365be4e1be0629e58cc1c8bb (diff) | |
parent | 5878fd010ec5230bc54e22d2c0b5585f7aa77cd8 (diff) |
Merge branch 'f1337-macos'
Diffstat (limited to 'build')
-rw-r--r-- | build/.goreleaser.yml | 9 | ||||
-rwxr-xr-x | build/build-darwin-cgo.sh | 5 | ||||
-rw-r--r-- | build/build_steps.txt | 3 |
3 files changed, 17 insertions, 0 deletions
diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml index f590474..054b20d 100644 --- a/build/.goreleaser.yml +++ b/build/.goreleaser.yml @@ -1,6 +1,7 @@ builds: - binary: gotop goos: + - darwin - linux goarch: - amd64 @@ -11,6 +12,8 @@ builds: - 5 - 6 - 7 + hooks: + post: ./build/build-darwin-cgo.sh archive: name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}" replacements: @@ -18,3 +21,9 @@ 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 new file mode 100755 index 0000000..0d25779 --- /dev/null +++ b/build/build-darwin-cgo.sh @@ -0,0 +1,5 @@ +#!/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 diff --git a/build/build_steps.txt b/build/build_steps.txt index c37f340..71eda3a 100644 --- a/build/build_steps.txt +++ b/build/build_steps.txt @@ -1,5 +1,8 @@ +need to have goreleaser, xgo, and dockerd installed + make sure gotop builds and runs tag commit with version number export GitHub token in shell +make sure dockerd is running run `goreleaser --rm-dist -f build/.goreleaser.yml` update AUR package |