cask "understand" do version "7.0.1209" sha256 "01c78618e5a9feda78d7279352536b943bf9bd84bb18a3d741aade136ea6c074" url "https://latest.scitools.com/Understand/Understand-#{version}-macOS-Universal.dmg" name "SciTools Understand" desc "Code visualization and exploration tool" homepage "https://scitools.com/features" livecheck do url "https://licensing.scitools.com/download/thanks/macOS-Universal.dmg" regex(/Understand[._-]v?(\d+(?:\.\d+)+)[._-]macOS[._-]Universal\.dmg/i) end app "Understand.app" zap trash: [ "~/Library/Application Support/SciTools", "~/Library/Preferences/com.scitools.License.plist", "~/Library/Preferences/com.scitools.Understand.plist", "~/Library/Saved Application State/com.scitools.Understand.savedState", ] end