cask "element" do version "1.11.85" sha256 "ea294dcff179a6e1698b874e30ae07b5cba588c7c46baa9ba6ae6833ab69541c" 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