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"
10 desc "Client for the Bitwarden platform"
11 homepage "https://github.com/AChep/keyguard-app"
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)
21 "#{match[2]},#{match[1]}"
26 depends_on macos: ">= :high_sierra"
31 "~/Library/Application Support/keyguard",
32 "~/Library/Saved Application State/com.artemchep.keyguard.savedState",