Skip to content

Commit

Permalink
feat: support install from homebrew (appleboy#360)
Browse files Browse the repository at this point in the history
* feat: support install from homebrew

* docs: add readme.
  • Loading branch information
appleboy authored Jun 27, 2018
1 parent bcf18d6 commit 5d5127b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions HomebrewFormula/gorush.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Gorush < Formula
desc "A push notification server written in Go (Golang)."
homepage "https://github.com/appleboy/gorush"
head "https://github.com/appleboy/gorush.git"

depends_on "go" => :build

def install
ENV["GOPATH"] = buildpath
gorushpath = buildpath/"src/github.com/appleboy/gorush"
gorushpath.install buildpath.children
cd gorushpath do
system "go", "build", "-o", bin/"gorush"
prefix.install_metafiles
end
end
end
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ On Windows
$ wget https://github.com/appleboy/gorush/releases/download/1.10.0/gorush-1.10.0-windows-amd64.exe -O gorush.exe
```

On macOS, use Homebrew.

```
$ brew install --HEAD https://github.com/appleboy/gorush/raw/master/HomebrewFormula/gorush.rb
```

### Command Usage

```
Expand Down

0 comments on commit 5d5127b

Please sign in to comment.