cask "cleanshot" do version "4.7.4" sha256 "11e98d349e7e50b585329ed29fcd56e93be77b8aca74db5f4c1e4fe309d7a5a0" url "https://updates.getcleanshot.com/v3/CleanShot-X-#{version}.dmg" name "CleanShot" desc "Screen capturing tool" homepage "https://getcleanshot.com/" livecheck do url "https://cleanshot.com/changelog" regex(/class="number"[^>]*?>(\d+(?:\.\d+)+)= :mojave" app "CleanShot X.app" uninstall quit: "pl.maketheweb.cleanshotx" zap trash: [ "~/Library/Application Support/CleanShot", "~/Library/Caches/pl.maketheweb.cleanshotx", "~/Library/Caches/SentryCrash/CleanShot X", "~/Library/Preferences/com.getcleanshot.app.plist", "~/Library/Preferences/pl.maketheweb.cleanshotx.plist", ] end