cask "mathpix-snipping-tool" do version "3.4.11.2" sha256 "3dd86888835c48e7d2aabbafaa22071a51ff3325435b654ba3ef6651101b3fc8" 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