issue-27: cross-compile darwin w/ cgo
This commit is contained in:
parent
21747ecd06
commit
035126b2fb
|
@ -12,6 +12,7 @@
|
||||||
builds:
|
builds:
|
||||||
- binary: gotop
|
- binary: gotop
|
||||||
goos:
|
goos:
|
||||||
|
- darwin
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
@ -22,8 +23,16 @@ builds:
|
||||||
- 5
|
- 5
|
||||||
- 6
|
- 6
|
||||||
- 7
|
- 7
|
||||||
|
hooks:
|
||||||
|
post: ./build-darwin-cgo.sh
|
||||||
archive:
|
archive:
|
||||||
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
|
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
|
||||||
replacements:
|
replacements:
|
||||||
arm64: arm8
|
arm64: arm8
|
||||||
format: tgz
|
format: tgz
|
||||||
|
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"
|
||||||
|
|
5
build-darwin-cgo.sh
Executable file
5
build-darwin-cgo.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user