cask "keyguard" do arch arm: "apple", intel: "intel" version "1.12.3,20250530" sha256 arm: "0d987393191013f50acf9238227c8fd73538079a1493b1ea8c1f45602d94b964", intel: "747115defe4df09f8f58b7519aa058b4b3ad0898567a6dca1c8692c63582d294" url "https://github.com/AChep/keyguard-app/releases/download/r#{version.csv.second}/Keyguard-#{version.csv.first}-#{arch}.dmg" name "Keyguard" desc "Client for the Bitwarden platform" homepage "https://github.com/AChep/keyguard-app" livecheck do url :url regex(%r{/r?(\d+(?:\.\d+)*)/Keyguard[._-](\d+(?:\.\d+)+)[._-]#{arch}\.dmg}i) strategy :github_latest do |json, regex| json["assets"]&.map do |asset| match = asset["browser_download_url"]&.match(regex) next if match.blank? "#{match[2]},#{match[1]}" end end end depends_on macos: ">= :high_sierra" app "keyguard.app" zap trash: [ "~/Library/Application Support/keyguard", "~/Library/Saved Application State/com.artemchep.keyguard.savedState", ] end