cask "snipaste" do version "2.10.2" sha256 "39e950c8fb38a4ad7096568f33d67b46b0a6a7261f36e1eaf24844d7b50e0519" url "https://bitbucket.org/liule/snipaste/downloads/Snipaste-#{version}.dmg", verified: "bitbucket.org/liule/snipaste/" name "Snipaste" desc "Snip or pin screenshots" homepage "https://www.snipaste.com/" livecheck do url "https://dl.snipaste.com/mac" regex(/Snipaste[._-]v?(\d+(?:\.\d+)+)\.dmg/i) strategy :header_match end auto_updates true app "Snipaste.app" uninstall quit: "com.Snipaste" zap trash: [ "~/.snipaste/", "~/Library/Preferences/com.Snipaste.plist", ] end