Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for High Sierra via Brew #278

Merged
merged 1 commit into from
Oct 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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