Skip to content

Commit

Permalink
Make it easier to manipulate sha via scripts (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikgupta-db authored Sep 11, 2023
1 parent ab44e52 commit abf9d69
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Formula/databricks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,29 @@ class Databricks < Formula
darwin_url = "#{download_prefix}/v#{version}/databricks_cli_#{version}_darwin_#{arch_string}.zip"
linux_url = "#{download_prefix}/v#{version}/databricks_cli_#{version}_linux_#{arch_string}.zip"

darwin_amd64_sha = "830b28092e06baabe6f5284c8f0799dc4f670ef0257e8ba1205b249ea8e91d2c"
darwin_arm64_sha = "99c623723599631a75d5004df29068c9347185e20c3e852ec9e2a5848ccfed77"
linux_amd64_sha = "72a4044afd44c573dec7ae101dd6b914444a76741160e58511410d7f0b5cd153"
linux_arm64_sha = "3edbbdfa5135e7f17f5412708f01b4a103efd95b82eeb5bc4db7d8a76f579692"

if OS.mac? && Hardware::CPU.intel?
url darwin_url
sha256 "830b28092e06baabe6f5284c8f0799dc4f670ef0257e8ba1205b249ea8e91d2c"
sha256 darwin_amd64_sha
end

if OS.mac? && Hardware::CPU.arm?
url darwin_url
sha256 "99c623723599631a75d5004df29068c9347185e20c3e852ec9e2a5848ccfed77"
sha256 darwin_arm64_sha
end

if OS.linux? && Hardware::CPU.intel?
url linux_url
sha256 "72a4044afd44c573dec7ae101dd6b914444a76741160e58511410d7f0b5cd153"
sha256 linux_amd64_sha
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url linux_url
sha256 "3edbbdfa5135e7f17f5412708f01b4a103efd95b82eeb5bc4db7d8a76f579692"
sha256 linux_arm64_sha
end

def install
Expand Down

0 comments on commit abf9d69

Please sign in to comment.