cask "element@nightly" do version "2025070501" sha256 "78aa6ab5958ebfc268a29f8605d70604ced0f98f11b58d20b5c52c200879cb89" url "https://packages.element.io/nightly/update/macos/Element%20Nightly-#{version}-universal-mac.zip" name "Element Nightly" desc "Matrix collaboration client" homepage "https://element.io/get-started" # The `releases.json` file is served with a `Content-Encoding: aws-chunked` # header, which will cause curl to error if the `--compressed` option is used. # This checks the version on the directory listing page until we can account # for this situation in livecheck. livecheck do url "https://packages.element.io/nightly/update/macos/index.html" regex(/href=.*?Element\s+Nightly[._-]v?(\d+(?:\.\d+)*)[._-]universal[._-]mac\.zip/i) end auto_updates true depends_on macos: ">= :big_sur" app "Element Nightly.app" zap trash: [ "~/Library/Application Support/Element", "~/Library/Application Support/Riot", "~/Library/Caches/im.riot.app", "~/Library/Caches/im.riot.app.ShipIt", "~/Library/HTTPStorages/im.riot.app", "~/Library/Logs/Riot", "~/Library/Preferences/ByHost/im.riot.app.ShipIt.*.plist", "~/Library/Preferences/im.riot.app.helper.plist", "~/Library/Preferences/im.riot.app.plist", "~/Library/Saved Application State/im.riot.app.savedState", ] end