Skip to content

Commit 7729a8a

Browse files
authored
Update README & Homepage with https://getbin.io references (#8)
* Update README with https://getbin.io * Update homepage with getbin references * Update Makefile
1 parent 80c02a5 commit 7729a8a

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BINARY = binary-fetcher
1+
BINARY = getbin
22

33
.PHONY: build
44
build:

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,50 @@
22
<img src="https://suyashkumar.com/assets/img/terminal_large.png" width="80">
33
<h3 align="center">GitHub Release Downloader</h3>
44
<p align="center">Download latest GitHub release binaries (for your OS/arch) using <code>wget</code> or <code>curl</code></p>
5-
<p align="center"><code>wget --content-disposition https://bin.suyash.io/suyashkumar/ssl-proxy</code></p>
6-
<p align="center"> <a href="https://goreportcard.com/report/github.com/suyashkumar/bin"><img src="https://goreportcard.com/badge/github.com/suyashkumar/bin" alt=""></a> <a href="https://godoc.org/github.com/suyashkumar/bin"><img src="https://godoc.org/github.com/suyashkumar/bin?status.svg" alt=""></a>
5+
<p align="center"><code>wget --content-disposition https://getbin.io/suyashkumar/ssl-proxy</code></p>
6+
<p align="center"> <a href="https://goreportcard.com/report/github.com/suyashkumar/getbin"><img src="https://goreportcard.com/badge/github.com/suyashkumar/getbin" alt=""></a> <a href="https://godoc.org/github.com/suyashkumar/getbin"><img src="https://godoc.org/github.com/suyashkumar/getbin?status.svg" alt=""></a>
77
</p>
88
</p>
99

1010
## Overview
11-
This is a simple server (deployed @ https://bin.suyash.io) that makes it easy to download the latest binary associated with _any GitHub repo release_ using regular old `wget` and `curl`. It attempts to use your User-Agent to fetch the right GitHub release asset for your OS/arch, but also lets you provide query parameters to specify OS/arch, and optionally uncompress the release artifact on the fly.
11+
This is a simple server (deployed @ https://getbin.io) that makes it easy to download the latest binary associated with _any GitHub repo release_ using regular old `wget` and `curl`. It attempts to use your User-Agent to fetch the right GitHub release asset for your OS/arch, but also lets you provide query parameters to specify OS/arch, and optionally uncompress the release artifact on the fly.
1212

1313
I mostly just built this as a way to distribute my software binaries easily without dealing with `brew`, `npm`, etc (though they certainly have their advantages & trust). I can just give my users a one line download link that will always get them the latest released binary for their platform, and _all I have to do is just update GitHub releases like I normally do_.
1414

15-
Basic functionality currently exists (with some assumptions, see below), but this is still a work in progress with many improvements forthcoming. This currently will work as expected with all of my repos/releases.
15+
Basic functionality currently exists (with some assumptions, see below), but this is still a work in progress with many improvements forthcoming. This currently will work as expected with all of __my__ repos/releases.
1616

1717
## Usage
1818
Let's say you wanted to get the __latest__ [`suyashkumar/ssl-proxy`](https://github.com/suyashkumar/ssl-proxy) binary for your OS/arch. You simply:
1919
```sh
20-
wget -qO- https://bin.suyash.io/suyashkumar/ssl-proxy | tar xvz
20+
wget -qO- https://getbin.io/suyashkumar/ssl-proxy | tar xvz
2121
```
2222
or with `curl` you usually must specify your os (since it is not included in the User-Agent):
2323
```sh
24-
curl -LJ "https://bin.suyash.io/suyashkumar/ssl-proxy?os=darwin" | tar xvz
24+
curl -LJ "https://getbin.io/suyashkumar/ssl-proxy?os=darwin" | tar xvz
2525
```
2626
### Use with any* GitHub repo
27-
The generalized request format is `GET https://bin.suyash.io/GITHUB_USERNAME/GITHUB_REPO`. See section below for assumptions.
27+
The generalized request format is `GET https://getbin.io/GITHUB_USERNAME/GITHUB_REPO`. See section below for assumptions.
2828

2929
Let's say we wanted the latest distribution of [`goreleaser/goreleaser`](https://github.com/goreleaser/goreleaser/):
3030
```sh
31-
wget -qO- https://bin.suyash.io/goreleaser/goreleaser | tar xvz
31+
wget -qO- https://getbin.io/goreleaser/goreleaser | tar xvz
3232
```
3333

3434
Generally, the server software attempts to detect your OS (and in the future, architecture) automatically from your `User-Agent`, but also allows you to specify your own intentions as seen with `curl` above. We're piping into `tar` here because the original release assets are compressed, but you can also uncompress on the fly (see below)
3535

3636
#### Uncompress on the fly
3737
If you want to not bother with piping into tar or zip as above, the server can decompress on the fly to serve you the binary (assuming it is the only file in the archive):
3838
```sh
39-
wget --content-disposition "https://bin.suyash.io/suyashkumar/ssl-proxy?uncompress=true"
39+
wget --content-disposition "https://getbin.io/suyashkumar/ssl-proxy?uncompress=true"
4040
```
4141

4242
If your release asset is __not compressed__, you can simply:
4343
```sh
44-
wget --content-disposition "https://bin.suyash.io/suyashkumar/ssl-proxy"
44+
wget --content-disposition "https://getbin.io/suyashkumar/ssl-proxy"
4545
```
4646
or
4747
```sh
48-
curl -LOJ "https://bin.suyash.io/suyashkumar/ssl-proxy?os=darwin"
48+
curl -LOJ "https://getbin.io/suyashkumar/ssl-proxy?os=darwin"
4949
```
5050

5151

handlers/home.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const homeMessage = `
1818
<h1> GitHub Release Downloader </h1>
1919
<p>
2020
This tool helps you download the latest binaries from GitHub releases quickly using curl or wget.
21-
Find out more at the <a href="https://github.com/suyashkumar/bin">GitHub README for this project.</a>
21+
Find out more at the <a href="https://github.com/suyashkumar/getbin">GitHub README for this project.</a>
2222
</p>
2323
<p>
2424
Let's say you wanted to download the latest version of
@@ -30,20 +30,20 @@ const homeMessage = `
3030
<p>
3131
Download and untar the <b>latest</b> release of ssl-proxy for your OS (will be based on wget's
3232
<code>User-Agent</code>): <br />
33-
<code>wget -qO- "https://bin.suyash.io/suyashkumar/ssl-proxy" | tar xvz</code> <br />
33+
<code>wget -qO- "https://getbin.io/suyashkumar/ssl-proxy" | tar xvz</code> <br />
3434
</p>
3535
<p>
3636
You can also specify the OS you wish to download for as follows (can be either <code>darwin</code>,
3737
<code>linux</code>, or <code>windows</code>: <br />
38-
<code>wget -qO- "https://bin.suyash.io/suyashkumar/ssl-proxy?os=darwin" | tar xvz</code> <br />
38+
<code>wget -qO- "https://getbin.io/suyashkumar/ssl-proxy?os=darwin" | tar xvz</code> <br />
3939
</p>
4040
<p>
4141
You can also let the server handle uncompression for you: <br />
42-
<code>wget --content-disposition "https://bin.suyash.io/suyashkumar/ssl-proxy?os=darwin?uncompress=true"</code> <br />
42+
<code>wget --content-disposition "https://getbin.io/suyashkumar/ssl-proxy?os=darwin?uncompress=true"</code> <br />
4343
</p>
4444
<p>
4545
You can also use <code>curl</code>. Note, you must always specify <code>os</code> with curl. <br />
46-
<code> curl -LJ "https://bin.suyash.io/suyashkumar/ssl-proxy?os=darwin" | tar xvz </code> <br />
46+
<code> curl -LJ "https://getbin.io/suyashkumar/ssl-proxy?os=darwin" | tar xvz </code> <br />
4747
</p>
4848
</div>
4949
</article>

0 commit comments

Comments
 (0)