Casks/e/element.rb
cask "element" do
version "1.11.76"
sha256 "061406964753c0351b9a892f04aca76e5d3ae5cd992c0d824b71d251b65854d5"
url "https://packages.element.io/desktop/install/macos/Element-#{version}-universal.dmg"
name "Element"
desc "Matrix collaboration client"
homepage "https://element.io/get-started"
livecheck do
url "https://packages.element.io/desktop/install/macos/index.html"
regex(/href=.*?Element[._-]v?(\d+(?:\.\d+)+)[._-]universal\.dmg/i)
end
auto_updates true
depends_on macos: ">= :catalina"
app "Element.app"
zap trash: [
"~/Library/Application Support/Element",
"~/Library/Application Support/Riot",
"~/Library/Caches/im.riot.app",
"~/Library/Caches/im.riot.app.ShipIt",
"~/Library/Logs/Riot",
"~/Library/Preferences/im.riot.app.helper.plist",
"~/Library/Preferences/im.riot.app.plist",
"~/Library/Saved Application State/im.riot.app.savedState",
]
end