Skip to content

Commit

Permalink
ghr can be installed from official homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Apr 29, 2019
1 parent a08ca19 commit d38e2bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 104 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ env:
- secure: "c7Owhq9NWblgnQLvmkssks3j4zNPCvgkkagVcuz3GmhcklVrZqY3H57FNepT3pkTYt+EJgqocBoohZodVFXsn917DcrMHETO6enDLUvmsJTTdxVFIU6ylr79NLTfNSJFY//gCe3WiMPw7bEePrAP1o2zMCvK21bZoHN6r48VHgY="
os:
- osx
install:
- echo "skipping travis default"
script:
- make test-all
after_script:
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ crossbuild: CREDITS
install:
go install -ldflags "-X main.GitCommit=$(COMMIT)"

.PHONY: brew
brew: crossbuild
go run release/main.go v$(VERSION) pkg/dist/v$(VERSION)/ghr_v$(VERSION)_darwin_amd64.zip > ../homebrew-ghr/ghr.rb

.PHONY: upload
PHONY: upload
upload: build devel-deps
bin/ghr -v
bin/ghr v$(VERSION) pkg/dist/v$(VERSION)
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ $ ghr \

## Install

You can download binary from [release page](https://github.com/tcnksm/ghr/releases) and place it in `$PATH` directory.
If you are OSX user, you can use [Homebrew](http://brew.sh/):

```bash
$ brew install ghr
```

If you are in another platform, you can download binary from [release page](https://github.com/tcnksm/ghr/releases) and place it in `$PATH` directory.

Or you can use `go get` (you need to use go1.7 or later),

Expand Down
96 changes: 0 additions & 96 deletions release/main.go

This file was deleted.

0 comments on commit d38e2bd

Please sign in to comment.