Skip to content

Commit 544d40b

Browse files
authored
Merge pull request #101 from 178inaba/install_cmd
feat(*): Add install.sh and binary install guide.
2 parents 0beaeea + a9289d5 commit 544d40b

File tree

3 files changed

+390
-2
lines changed

3 files changed

+390
-2
lines changed

.goreleaser.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ builds:
33
- linux
44
- windows
55
- darwin
6+
ignore:
7+
- goos: darwin
8+
goarch: 386
69
archives:
7-
- format: binary
10+
- id: tar.gz
11+
format: tar.gz
12+
- id: binary
13+
format: binary

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ go get -u github.com/cosmtrek/air
3838

3939
### macOS, Linux, Windows
4040

41-
The binary is published on the [release page](https://github.com/cosmtrek/air/releases).
41+
```bash
42+
# binary will be $(go env GOPATH)/bin/air
43+
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
44+
45+
# or install it into ./bin/
46+
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s
47+
48+
air -v
49+
```
4250

4351
P.S. Great thanks mattn's [PR](https://github.com/cosmtrek/air/pull/1) for supporting Windows platform.
4452

0 commit comments

Comments
 (0)