2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-05 00:00:14 +00:00
This commit is contained in:
Miguel Mota 2018-03-31 22:25:51 -07:00
parent 8fbd216b88
commit c687cbc3ab
5 changed files with 14 additions and 4 deletions

View File

@ -6,7 +6,10 @@ run:
# http://macappstore.org/upx
build: clean
go build -ldflags "-s -w" -o bin/cointop && upx bin/cointop
go build -ldflags "-s -w" -o bin/cointop32 && upx bin/cointop32 && \
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/cointop64 && upx bin/cointop64
clean:
go clean && rm -f bin/cointop
go clean && \
rm -f bin/cointop64 && \
rm -f bin/cointop32

View File

@ -13,7 +13,7 @@
Make sure to have [golang](https://golang.org/) installed, then do:
```bash
go install github.com/miguelmota/cointop
go get -u github.com/miguelmota/cointop
```
#### Alternatively (without go)

BIN
bin/cointop64 Executable file

Binary file not shown.

View File

@ -1,7 +1,14 @@
#!/bin/bash
echo "downloading..."
wget "https://github.com/miguelmota/cointop/raw/master/bin/cointop" -O cointop
BIN="cointop32"
if [ $(uname -m) == 'x86_64' ]; then
BIN="cointop64"
fi
wget "https://github.com/miguelmota/cointop/raw/master/bin/$BIN" -O cointop
echo "installing..."
chmod +x cointop
mv cointop /usr/local/bin/