Casks/m/mathpix-snipping-tool.rb
cask "mathpix-snipping-tool" do
version "3.4.8.6"
sha256 "7a0d389efb79bb48abbe6a81c8de361bea50acb30221177be14ea614f53f5a30"
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