-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
zotero@beta.rb
33 lines (28 loc) · 1.16 KB
/
zotero@beta.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cask "zotero@beta" do
version "7.0.0-beta.94,8211934d9"
sha256 "2536f9357dd019dfd9b7fcf3e39e94efcb384ca05379a16085295a84ee606c63"
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