homebrew-cask/Casks/keepassxc.rb

28 lines
1.1 KiB
Ruby

cask "keepassxc" do
version "2.6.2-2"
sha256 "611b940952d5d51c2865d35e6916954a4ff3454bc8ae4dcc7abed0a4cda7d90d"
# github.com/keepassxreboot/keepassxc/ was verified as official when first introduced to the cask
url "https://github.com/keepassxreboot/keepassxc/releases/download/#{version.sub(/-\d+\z/, "")}/KeePassXC-#{version}.dmg"
appcast "https://github.com/keepassxreboot/keepassxc/releases.atom"
name "KeePassXC"
desc "Password manager app"
homepage "https://keepassxc.org/"
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