mirror of
https://github.com/cjbassi/gotop.git
synced 2025-04-25 13:49:00 +08:00
Move gotop.go to main.go
This commit is contained in:
parent
3cc1e4ebfc
commit
1a61eb2153
10
build.sh
10
build.sh
@ -9,19 +9,19 @@
|
||||
|
||||
# more info at https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
|
||||
|
||||
VERSION=$(go run gotop.go -v)
|
||||
VERSION=$(go run main.go -v)
|
||||
|
||||
mkdir build
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
env GOOS=darwin GOARCH=amd64 go 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 ../
|
||||
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 ../
|
||||
env GOOS=linux GOARCH=amd64 go build -o gotop ../
|
||||
tar czf gotop-$VERSION-linux_amd64.tgz gotop
|
||||
rm gotop
|
||||
|
Loading…
x
Reference in New Issue
Block a user