Skip to content

Commit

Permalink
Merge pull request #278 from manifoldco/support-high-sierra
Browse files Browse the repository at this point in the history
Add support for High Sierra via Brew
  • Loading branch information
ianlivingstone authored Oct 7, 2017
2 parents 9432b38 + 991c316 commit 0bef271
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ _Unreleased_
- Update checking is now on by default after being disabled in `v0.24.2`
- Daemon will now check for updates on startup along with every day at 6am
- Torus is now compiled using go1.9.1
- Torus now supports installation from brew via a bottle on Mac OS X High Sierra

## v0.24.2

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ builds/torus-$(VERSION).sierra.bottle.tar.gz: binary-darwin-amd64 builds/bottle/

release-homebrew: envcheck tagcheck release-homebrew-bottle release-homebrew-$(RELEASE_ENV)

BOTTLE_VERSIONS=$(foreach release,sierra el_capitan yosemite,builds/dist/brew/bottles/torus-$(VERSION).$(release).bottle.tar.gz)
BOTTLE_VERSIONS=$(foreach release,high_sierra sierra el_capitan yosemite,builds/dist/brew/bottles/torus-$(VERSION).$(release).bottle.tar.gz)
$(BOTTLE_VERSIONS): builds/torus-$(VERSION).sierra.bottle.tar.gz builds/dist/brew/bottles
cp $< $@

Expand Down
4 changes: 4 additions & 0 deletions packaging/homebrew/torus.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ class Torus < Formula
url "https://github.com/manifoldco/torus-cli/archive/v{{VERSION}}.tar.gz"
sha256 "{{SHA256}}"
head "https://github.com/manifoldco/torus-cli.git"
getting_started_url "https://www.torus.sh/docs/latest/start-here/quickstart"

depends_on "glide" => :build
depends_on "go" => :build

bottle do
root_url "{{BOTTLE_URL}}"
cellar :any_skip_relocation
sha256 "{{BOTTLE_SHA256}}" => :high_sierra
sha256 "{{BOTTLE_SHA256}}" => :sierra
sha256 "{{BOTTLE_SHA256}}" => :el_capitan
sha256 "{{BOTTLE_SHA256}}" => :yosemite
Expand Down Expand Up @@ -44,5 +46,7 @@ class Torus < Formula

bin.install "builds/bin/{{VERSION}}/darwin/#{arch}/torus"
end

ohai "Learn how to get started with Torus at #{getting_started_url}!"
end
end

0 comments on commit 0bef271

Please sign in to comment.