cask "zotero@beta" do version "7.0.10-beta.2,dc47650eb" sha256 "40812247a4a33b7554360bdb30c40dfad46314436f526b498472c84a28c86a80" url "https://download.zotero.org/client/beta/#{version.csv.first}%2B#{version.csv.second}/Zotero-#{version.csv.first}%2B#{version.csv.second}.dmg" name "Zotero Beta" desc "Collect, organize, cite, and share research sources" homepage "https://www.zotero.org/" livecheck do url "https://www.zotero.org/download/client/update/0/0/Darwin/en-US/beta/Darwin%25/update.xml" strategy :xml do |xml| xml.get_elements("//update[@type='major']").map do |element| element.attributes["displayVersion"]&.tr("+", ",") end end end auto_updates true conflicts_with cask: "zotero" depends_on macos: ">= :sierra" app "Zotero.app" zap trash: [ "~/Library/Application Scripts/org.zotero.SafariExtensionApp.SafariExtension", "~/Library/Application Support/Zotero", "~/Library/Caches/Zotero", "~/Library/Containers/org.zotero.SafariExtensionApp.SafariExtension", "~/Library/Preferences/org.zotero.zotero-beta.plist", "~/Library/Saved Application State/org.zotero.zotero-beta.savedState", ] end