Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'macos' into macos-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
f1337 committed Apr 29, 2018
2 parents 894b9b7 + 035126b commit 5878fd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions build-darwin-cgo.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5878fd0

Please sign in to comment.