/
mathpix-snipping-tool.rb
31 lines (26 loc) 路 1.06 KB
/
mathpix-snipping-tool.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
cask "mathpix-snipping-tool" do
version "3.4.7.2"
sha256 "eb6ffa106311d5a26a3c83cb5bddb786345382933dc58c540ac646b4c60c2479"
url "https://mathpix.com/dmg/SnippingTool-v#{version}.dmg"
name "Mathpix Snipping Tool"
desc "Scanner app for math and science"
homepage "https://mathpix.com/"
livecheck do
url "https://mathpix.com/appcast.xml"
strategy :sparkle do |item|
item.url[/SnippingTool[._-]v?(\d+(?:\.\d+)+)\.dmg/i, 1]
end
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Mathpix Snipping Tool.app"
zap trash: [
"~/Library/Application Support/com.mathpix.snipping-tool-noappstore",
"~/Library/Caches/com.crashlytics.data/com.mathpix.snipping-tool-noappstore",
"~/Library/Caches/com.mathpix.snipping-tool-noappstore",
"~/Library/Caches/io.fabric.sdk.mac.data/com.mathpix.snipping-tool-noappstore",
"~/Library/HTTPStorages/com.mathpix.snipping-tool-noappstore",
"~/Library/Preferences/com.mathpix.snipping-tool-noappstore.plist",
"~/Library/WebKit/com.mathpix.snipping-tool-noappstore",
]
end