Files
homebrew-cask/Casks/d/dbeaver-community.rb
2023-12-03 08:07:49 -07:00

32 lines
940 B
Ruby

cask "dbeaver-community" do
arch arm: "aarch64", intel: "x86_64"
version "23.3.0"
sha256 arm: "5558712cd9a2e62a62de42c1267f155c44025f600df8e0bc8aa9307cd37c2bb6",
intel: "4234592383595c569acdc747244713a58b112f137d7337220b660759c073e34e"
url "https://dbeaver.io/files/#{version}/dbeaver-ce-#{version}-macos-#{arch}.dmg"
name "DBeaver Community Edition"
desc "Universal database tool and SQL client"
homepage "https://dbeaver.io/"
livecheck do
url "https://dbeaver.io/product/dbeaver-ce-version.xml"
strategy :xml do |xml|
xml.get_elements("version/number").first&.text&.strip
end
end
auto_updates true
app "DBeaver.app"
uninstall signal: ["TERM", "org.jkiss.dbeaver.core.product"]
zap trash: [
"~/Library/DBeaverData",
"~/Library/Preferences/org.jkiss.dbeaver.core.product.plist",
"~/Library/Saved Application State/org.jkiss.dbeaver.core.product.savedState",
]
end