diff --git a/Formula/databricks.rb b/Formula/databricks.rb index f5ae7b0..585c55b 100644 --- a/Formula/databricks.rb +++ b/Formula/databricks.rb @@ -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