feat: support install from homebrew (#360)

* feat: support install from homebrew

* docs: add readme.
This commit is contained in:
Bo-Yi Wu
2018-06-27 09:28:27 +08:00
committed by GitHub
parent bcf18d662a
commit 5d5127b690
2 changed files with 23 additions and 0 deletions

17
HomebrewFormula/gorush.rb Normal file
View File

@@ -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