summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael R Fleet <f1337@f1337.us>2018-04-29 14:42:24 -0400
committerMichael R Fleet <f1337@f1337.us>2018-04-29 14:42:24 -0400
commit5878fd010ec5230bc54e22d2c0b5585f7aa77cd8 (patch)
tree28f55ef4e74e1d3b1e90ed55e0a217dc4a3968c5
parent894b9b717ade74c05d9f9f8ae0a9967d0544c51f (diff)
parent035126b2fbffeb43407ce35ac9884963edbeae0f (diff)
Merge branch 'macos' into macos-rebase
-rw-r--r--.goreleaser.yml2
-rwxr-xr-xbuild-darwin-cgo.sh5
2 files changed, 7 insertions, 0 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 7eb064c..52c770d 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -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:
diff --git a/build-darwin-cgo.sh b/build-darwin-cgo.sh
new file mode 100755
index 0000000..0d25779
--- /dev/null
+++ b/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