Add install script to download from binary release

pull/58/head
Miguel Mota 4 years ago
parent c0add909bd
commit 1cd4c3c295

@ -96,16 +96,14 @@ cointop
### Binary (all platforms)
You can download the binary from the [releases](https://github.com/miguelmota/cointop/releases) page
You can download the binary from the [releases](https://github.com/miguelmota/cointop/releases) page.
```bash
# replace x.x.x with the latest version
wget https://github.com/miguelmota/cointop/releases/download/x.x.x/cointop_x.x.x_linux_amd64.tar.gz
tar -xvzf cointop_x.x.x_linux_amd64.tar.gz cointop
./cointop
curl -o- https://raw.githubusercontent.com/miguelmota/cointop/master/install.sh | bash
```
# optionally move to bin path
sudo mv cointop /usr/local/bin/cointop
```bash
wget -qO- https://raw.githubusercontent.com/miguelmota/cointop/master/install.sh | bash
```
### Homebrew (macOS)

@ -0,0 +1,17 @@
#!/bin/bash
VERSION=$(curl --silent "https://api.github.com/repos/miguelmota/cointop/releases/latest" | grep -Po --color=never '"tag_name": "\K.*?(?=")')
OSNAME="linux"
if [[ $(uname) == 'Darwin' ]]; then
OSNAME="darwin"
fi
(
cd /tmp
wget https://github.com/miguelmota/cointop/releases/download/${VERSION}/cointop_${VERSION}_${OSNAME}_amd64.tar.gz
tar -xvzf cointop_${VERSION}_${OSNAME}_amd64.tar.gz cointop
sudo mv cointop /usr/local/bin/cointop
cointop --version
)
Loading…
Cancel
Save