https://github.com/release-lab/install
install script for any command line tools
https://github.com/release-lab/install
Last synced: 12 months ago
JSON representation
install script for any command line tools
- Host: GitHub
- URL: https://github.com/release-lab/install
- Owner: release-lab
- Created: 2021-10-05T07:30:00.000Z (over 4 years ago)
- Default Branch: v1
- Last Pushed: 2023-11-09T06:02:47.000Z (over 2 years ago)
- Last Synced: 2023-11-09T07:21:22.245Z (over 2 years ago)
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Installer
This is a script for download binary from Github Release and install in your computer.
For a long time, I wrote a lot of tools and released them on Github Release, but I had to write an installation script for each tool.
This took me a lot of time and did a lot of repetitive work.
So I decided to write a universal script, which applies to all repo.
It needs to meet the following format `{name}_{os}_{arch}.tar.gz`
eg.
```
whatchanged_darwin_amd64.tar.gz
whatchanged_darwin_arm64.tar.gz
whatchanged_freebsd_amd64.tar.gz
whatchanged_windows_amd64.tar.gz
...
```
### 1. Shell (Mac/Linux)
install latest version
```bash
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r={owner}/{repo}
```
install specified version
```bash
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r={owner}/{repo} -v={version}
```
specified the executable filename name
```bash
curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r={owner}/{repo} -e={exe}
```
install from a `Github Mirror` website (Very helpful if you got network trouble to accessing Github). see [forward-cli](https://github.com/axetroy/forward-cli)
```bash
# setup revers proxy
$ forward --proxy-external https://github.com
2022/01/26 16:52:42 Proxy 'http://192.168.4.105:80' to 'https://github.com'
# install
$ curl -fsSL http://192.168.4.105/release-lab/install/raw/v1/install.sh | bash -s -- -r=release-lab/whatchanged -g=http://192.168.4.105
```
### 2. PowerShell (Windows):
install latest version
```powershell
$r="{owner}/{repo}";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
```
install specified version
```powershell
$r="{owner}/{repo}";$v="{version}";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
```
specified the executable filename name
```bash
$r="{owner}/{repo}";$e="{exe}";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
```
install from a `Github Mirror` website (Very helpful if you got network trouble to accessing Github). see [forward-cli](https://github.com/axetroy/forward-cli)
```powershell
# setup revers proxy
$ forward --proxy-external https://github.com
2022/01/26 16:52:42 Proxy 'http://192.168.4.105:80' to 'https://github.com'
# install
$ $r="release-lab/whatchanged";$g="http://192.168.4.105";iwr http://192.168.4.105/release-lab/install/raw/v1/install.ps1 -useb | iex
```