diff --git a/Formula/github-fresh.rb b/Formula/github-fresh.rb index a15af70..7133dd7 100644 --- a/Formula/github-fresh.rb +++ b/Formula/github-fresh.rb @@ -1,12 +1,17 @@ class GithubFresh < Formula desc "Keep your GitHub repo fresh" homepage "https://github.com/imsky/github-fresh" - url "https://github.com/imsky/github-fresh/archive/v0.7.0.tar.gz" - sha256 "c4c68cb8d4a906f2882f6abd6ed7525189f1edc55156b6a5641876b2fe2ce39d" + head "https://github.com/imsky/github-fresh", :using => :git, :tag => "v0.8.0" + depends_on "go" => :build def install + # create github-fresh-darwin in the build directory system "make", "build-darwin" + # rename the produced binary to the canonical name + mv "github-fresh-darwin", "github-fresh" + # move github-fresh binary to the right homebrew path + bin.install "github-fresh" end test do diff --git a/Makefile b/Makefile index d1f8ba5..06c78d6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME=github-fresh -VERSION=0.7.0 +VERSION=0.8.0 COMMIT=$(shell git rev-parse --short=7 HEAD) TIMESTAMP:=$(shell date -u '+%Y-%m-%dT%I:%M:%SZ') diff --git a/README.md b/README.md index 25c6022..f6cfc74 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ $ github-fresh -help ### Homebrew +```sh +$ brew tap imsky/github-fresh https://github.com/imsky/github-fresh.git +$ brew install --HEAD imsky/github-fresh/github-fresh +``` + ### Releases Download the binary for your platform from the [releases](https://github.com/imsky/github-fresh/releases) page.