Skip to content

Commit

Permalink
Merge pull request #101 from 178inaba/install_cmd
Browse files Browse the repository at this point in the history
feat(*): Add install.sh and binary install guide.
  • Loading branch information
xiantang authored Aug 15, 2020
2 parents 0beaeea + a9289d5 commit 544d40b
Show file tree
Hide file tree
Showing 3 changed files with 390 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ builds:
- linux
- windows
- darwin
ignore:
- goos: darwin
goarch: 386
archives:
- format: binary
- id: tar.gz
format: tar.gz
- id: binary
format: binary
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ go get -u github.com/cosmtrek/air

### macOS, Linux, Windows

The binary is published on the [release page](https://github.com/cosmtrek/air/releases).
```bash
# binary will be $(go env GOPATH)/bin/air
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin

# or install it into ./bin/
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s

air -v
```

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

Expand Down
Loading

0 comments on commit 544d40b

Please sign in to comment.