Merge branch 'macos' into macos-rebase

This commit is contained in:
Michael R Fleet 2018-04-29 14:42:24 -04:00
commit 5878fd010e
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,8 @@ builds:
- 5
- 6
- 7
hooks:
post: ./build-darwin-cgo.sh
archive:
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
replacements:

5
build-darwin-cgo.sh Executable file
View File

@ -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