Casks/z/zotero@beta.rb
cask "zotero@beta" do
version "7.0.0-beta.92,d5bb667fb"
sha256 "c499bbf90e818aedacfaee8476e658d05a0f6a72d84b40a11d9ec08f1b5e9eb7"
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