Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / k / keyguard.rb
blob936b0987b251e5386dbaa8606348bff40c468321
1 cask "keyguard" do
2   arch arm: "apple", intel: "intel"
4   version "1.6.4,20241102"
5   sha256 arm:   "92cb4ef9ea0cb4b9db636bf9499be9a7b27a6627890eef6b97a304e6babec681",
6          intel: "3997c9e5fc897d90c6b19ee5e2efba046988b976ba05bbe91a6dd153fc7c141b"
8   url "https://github.com/AChep/keyguard-app/releases/download/r#{version.csv.second}/Keyguard-#{version.csv.first}-#{arch}.dmg"
9   name "Keyguard"
10   desc "Client for the Bitwarden platform"
11   homepage "https://github.com/AChep/keyguard-app"
13   livecheck do
14     url :url
15     regex(%r{/r?(\d+(?:\.\d+)*)/Keyguard[._-](\d+(?:\.\d+)+)[._-]#{arch}\.dmg}i)
16     strategy :github_latest do |json, regex|
17       json["assets"]&.map do |asset|
18         match = asset["browser_download_url"]&.match(regex)
19         next if match.blank?
21         "#{match[2]},#{match[1]}"
22       end
23     end
24   end
26   depends_on macos: ">= :high_sierra"
28   app "keyguard.app"
30   zap trash: [
31     "~/Library/Application Support/keyguard",
32     "~/Library/Saved Application State/com.artemchep.keyguard.savedState",
33   ]
34 end