homebrew-cask/Casks/keepassxc.rb

33 lines
1.1 KiB
Ruby

cask "keepassxc" do
version "2.6.3"
sha256 "3b2e86aafa6943771f008ec530d0809b12f1a09773838f8e0e79ed71061a3c36"
url "https://github.com/keepassxreboot/keepassxc/releases/download/#{version}/KeePassXC-#{version}.dmg",
verified: "github.com/keepassxreboot/keepassxc/"
name "KeePassXC"
desc "Password manager app"
homepage "https://keepassxc.org/"
livecheck do
url "https://github.com/keepassxreboot/keepassxc/releases/latest"
strategy :page_match
regex(%r{href=.*?/KeePassXC-(\d+(?:\.\d+)*)\.dmg}i)
end
conflicts_with cask: "homebrew/cask-versions/keepassxc-beta"
depends_on macos: ">= :high_sierra"
app "KeePassXC.app"
binary "#{appdir}/KeePassXC.app/Contents/MacOS/keepassxc-cli"
zap trash: [
"~/.keepassxc",
"~/Library/Application Support/keepassxc",
"~/Library/Caches/org.keepassx.keepassxc",
"~/Library/Preferences/org.keepassx.keepassxc.plist",
"~/Library/Saved Application State/org.keepassx.keepassxc.savedState",
"~/Library/Logs/DiagnosticReports/KeePassXC_*.crash",
"~/Library/Application Support/CrashReporter/KeePassXC_*.plist",
]
end