From c94d77da617176849ef7c742924d36da7438a1d5 Mon Sep 17 00:00:00 2001 From: Robert Boes Date: Sat, 25 Dec 2021 03:52:32 +0100 Subject: [PATCH] Add ARM DMG for helo (#116448) * Add ARM DMG for helo * Update helo.rb Co-authored-by: Miccal Matthews --- Casks/helo.rb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Casks/helo.rb b/Casks/helo.rb index 8740d2adccd..7e1412a5034 100644 --- a/Casks/helo.rb +++ b/Casks/helo.rb @@ -1,15 +1,23 @@ cask "helo" do - version "1.6.2" - sha256 "a22704a4b8f5bc13a9f1c8f6e893657576c20308fe7372ae87306d58d70dca48" + arch = Hardware::CPU.intel? ? "" : "-arm64" + livecheck_arch = Hardware::CPU.intel? ? "mac" : "apple-silicon" - url "https://helo.fra1.digitaloceanspaces.com/helo/HELO-#{version}.dmg", - verified: "helo.fra1.digitaloceanspaces.com" + version "1.6.2" + + if Hardware::CPU.intel? + sha256 "a22704a4b8f5bc13a9f1c8f6e893657576c20308fe7372ae87306d58d70dca48" + else + sha256 "b1ef0c2c300d7c644f91cfc664bb28b3066b86257984b0407b52dd0e7ed59d0d" + end + + url "https://helo.fra1.digitaloceanspaces.com/helo/HELO-#{version}#{arch}.dmg", + verified: "helo.fra1.digitaloceanspaces.com/helo/" name "HELO" desc "Email tester and debugger" homepage "https://usehelo.com/" livecheck do - url "https://usehelo.com/download/latest/mac" + url "https://usehelo.com/download/latest/#{livecheck_arch}" strategy :header_match end