Skip to content

Commit

Permalink
Try curl | bash style download
Browse files Browse the repository at this point in the history
  • Loading branch information
polyrabbit committed May 29, 2018
1 parent d4a45a5 commit c170abd
Show file tree
Hide file tree
Showing 3 changed files with 391 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ before_deploy:
- go get -u github.com/mitchellh/gox
- go get -u github.com/tcnksm/ghr

- gox -output "binary/tt_{{.OS}}_{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD` -X main.Version=`git describe --tags | cut -dv -f 2`" -verbose
- gox -output "binary/tt_{{.OS}}_{{.Arch}}/tt" -ldflags "-X main.Rev=`git rev-parse --short HEAD` -X main.Version=`git describe --tags | cut -dv -f 2`" -verbose
- cp token_ticker.example.yaml binary
- mkdir -p dist
- for f in binary/*; do
if [[ -f "$f" && -x "$f" ]]; then
if [[ -d "$f" ]]; then
cp token_ticker.example.yaml "$f";
base=$(basename "$f");
tar zcvf "dist/$base.tar.gz" -C binary "$base" token_ticker.example.yaml;
tar zcvf "dist/$base.tar.gz" -C "$f" .;
fi
done
# - ghr --username polyrabbit --token $GITHUB_TOKEN --replace -delete --prerelease --debug pre-release dist/
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ Token-ticker (or `tt` for short) is a CLI tool for those who are both **Crypto i
# work in process
```

#### `curl | bash` style downloads to `/usr/local/bin`
```bash
$ curl -sfL https://raw.githubusercontent.com/polyrabbit/token-ticker/master/install.sh | bash -s -- -b /usr/local/bin
```

#### Using [Go](https://golang.org/) (1.9+)
```bash
$ go get -u github.com/polyrabbit/token-ticker
Expand Down
Loading

0 comments on commit c170abd

Please sign in to comment.