Merge pull request #163995 from razvanazamfirei/prism-livecheck

prism: update livecheck and zap
This commit is contained in:
Bevan Kay
2024-01-09 09:28:07 +11:00
committed by GitHub
+20 -12
View File
@@ -7,9 +7,12 @@ cask "prism" do
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://www.graphpad.com/updates"
regex(/"version":"(\d+(?:\.\d+)+)/i)
url "https://licenses.graphpad.com/updates?version=#{version}&configuration=full&platform=Mac&osVersion=14"
strategy :sparkle, &:short_version
end
auto_updates true
@@ -17,14 +20,19 @@ cask "prism" do
app "Prism #{version.major}.app"
zap 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/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",
]
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