Skip to content

Commit c170abd

Browse files
committed
Try curl | bash style download
1 parent d4a45a5 commit c170abd

File tree

3 files changed

+391
-3
lines changed

3 files changed

+391
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ before_deploy:
1717
- go get -u github.com/mitchellh/gox
1818
- go get -u github.com/tcnksm/ghr
1919

20-
- 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
20+
- 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
2121
- cp token_ticker.example.yaml binary
2222
- mkdir -p dist
2323
- for f in binary/*; do
24-
if [[ -f "$f" && -x "$f" ]]; then
24+
if [[ -d "$f" ]]; then
25+
cp token_ticker.example.yaml "$f";
2526
base=$(basename "$f");
26-
tar zcvf "dist/$base.tar.gz" -C binary "$base" token_ticker.example.yaml;
27+
tar zcvf "dist/$base.tar.gz" -C "$f" .;
2728
fi
2829
done
2930
# - ghr --username polyrabbit --token $GITHUB_TOKEN --replace -delete --prerelease --debug pre-release dist/

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Token-ticker (or `tt` for short) is a CLI tool for those who are both **Crypto i
4040
# work in process
4141
```
4242

43+
#### `curl | bash` style downloads to `/usr/local/bin`
44+
```bash
45+
$ curl -sfL https://raw.githubusercontent.com/polyrabbit/token-ticker/master/install.sh | bash -s -- -b /usr/local/bin
46+
```
47+
4348
#### Using [Go](https://golang.org/) (1.9+)
4449
```bash
4550
$ go get -u github.com/polyrabbit/token-ticker

0 commit comments

Comments
 (0)