blob: ef024bbd1392a14d33d1e668770462eebcb2d28b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env bash
# Build Steps
# 1. update version number in `gotop.go` and `download.sh`
# 2. run this script
# 3. publish binaries on GitHub
# 4. push changes to GitHub
# 5. update AUR package
# more info at https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
VERSION=$(go run main.go -v)
mkdir -p build
cd build
env GOOS=darwin GOARCH=amd64 go build -o gotop ../
tar czf gotop-$VERSION-darwin_amd64.tgz gotop
rm gotop
env GOOS=linux GOARCH=386 go build -o gotop ../
tar czf gotop-$VERSION-linux_386.tgz gotop
rm gotop
env GOOS=linux GOARCH=amd64 go build -o gotop ../
tar czf gotop-$VERSION-linux_amd64.tgz gotop
rm gotop
|