-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
prism.rb
38 lines (33 loc) 路 1.51 KB
/
prism.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
34
35
36
37
38
cask "prism" do
version "10.2.3"
sha256 "1c7f7afdde30f15eaa678cbc899569a9812d2f7a2d5fed44fabc903914cf8786"
url "https://cdn.graphpad.com/downloads/prism/#{version.major}/#{version}/InstallPrism#{version.major}.dmg"
name "GraphPad Prism"
desc "Statistical analysis and graphing software"
homepage "https://graphpad.com/"
# The `osVersion` parameter is required but doesn't seem to have an effect on
# the version in the appcast. However, we may want to monitor this over time
# (e.g. when the newest macOS release is higher than the hardcoded version).
livecheck do
url "https://licenses.graphpad.com/updates?version=#{version}&configuration=full&platform=Mac&osVersion=14"
strategy :sparkle, &:short_version
end
auto_updates true
depends_on macos: ">= :mojave"
app "Prism #{version.major}.app"
zap delete: [
"/Library/Application Support/GraphPad",
"/Library/GraphPad",
],
trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.graphpad.prism.sfl*",
"~/Library/Application Support/GraphPad",
"~/Library/Caches/com.GraphPad.Prism",
"~/Library/HTTPStorages/com.GraphPad.Prism",
"~/Library/Logs/GraphPad",
"~/Library/Preferences/com.GraphPad.Prism.autocomplete.plist",
"~/Library/Preferences/com.GraphPad.Prism.plist",
"~/Library/Saved Application State/com.GraphPad.Prism.savedState",
"~/Library/WebKit/com.GraphPad.Prism",
]
end