Skip to content

Commit

Permalink
chore: update hack from big_sur to monterey
Browse files Browse the repository at this point in the history
  • Loading branch information
abrightwell committed Nov 18, 2022
1 parent 0896371 commit 312b2ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Formula/cb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class Cb < Formula

bottle do
root_url "https://github.com/CrunchyData/homebrew-brew/releases/download/cb-3.1.0"
sha256 cellar: :any, arm64_big_sur: "85cea451eec057fa7e734548ca3ba6d779ed5836a3f9de14b8394575ef0d7d8e"
sha256 cellar: :any, monterey: "cd2c486026aa22a453a58a449c366d1d809accd4149142ca97c3b605d070d751"
sha256 cellar: :any, arm64_monterey: "ba09a59016190ec6fe4705b23732ff6f34f33f6cac11fa1130c3fb6a4d72c081"
sha256 cellar: :any, monterey: "cd2c486026aa22a453a58a449c366d1d809accd4149142ca97c3b605d070d751"
end

head do
Expand Down
8 changes: 4 additions & 4 deletions hack
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ver = ARGV[0]
p ver

static_mac_x86 = "https://github.com/CrunchyData/bridge-cli/releases/download/v#{ver}/cb-v#{ver}_macos_amd64.zip"
bottle_mac_x86 = "https://github.com/CrunchyData/homebrew-brew/releases/download/cb-#{ver}/cb-#{ver}.big_sur.bottle.tar.gz"
bottle_mac_x86 = "https://github.com/CrunchyData/homebrew-brew/releases/download/cb-#{ver}/cb-#{ver}.monterey.bottle.tar.gz"

module Ok
def `(cmd)
Expand All @@ -29,13 +29,13 @@ Dir.chdir "scratch"
`rm -rf cb/#{ver}/bin/cb`
`mv binary cb/#{ver}/bin/cb`
`chmod -w cb/#{ver}/bin/cb`
`tar cvzf cb-#{ver}.arm64_big_sur.bottle.tar.gz cb`
`tar cvzf cb-#{ver}.arm64_monterey.bottle.tar.gz cb`
`rm -rf cb`
sha = `sha256sum cb-#{ver}.arm64_big_sur.bottle.tar.gz`.split.first
sha = `sha256sum cb-#{ver}.arm64_monterey.bottle.tar.gz`.split.first

Dir.chdir ".."
`sed -i '10i\\ \
sha256 cellar: :any, arm64_big_sur: "#{sha}"
sha256 cellar: :any, arm64_monterey: "#{sha}"
' Formula/cb.rb`
p `brew style --fix Formula/cb.rb`
p `brew audit --formula Formula/cb.rb`

0 comments on commit 312b2ff

Please sign in to comment.