cask "mathpix-snipping-tool" do version "3.4.13.1" sha256 "2c43dd518f6fd37351192e7b1f2de5e65e204e039d6473f1513ab94d9cb49f56" 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" regex(/SnippingTool[._-]v?(\d+(?:\.\d+)+)\.dmg/i) strategy :sparkle do |item, regex| item.url[regex, 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