xmtop/build/build-darwin-cgo.sh
Caleb Bassi e3e0160bae Fix building issues
* can't use goreleaser with darwin builds so we have to manual build
them ourselves
2018-05-23 22:57:01 -07:00

14 lines
277 B
Bash
Executable File

#!/usr/bin/env bash
version=$(go run main.go -v)
xgo --targets="darwin/386,darwin/amd64" .
mv gotop-darwin-10.6-386 gotop
tar czf gotop_${version}_darwin_386.tgz gotop
rm -f gotop
mv gotop-darwin-10.6-amd64 gotop
tar czf gotop_${version}_darwin_amd64.tgz gotop
rm -f gotop