cask "simplemind" do version "2.5.0,b3063" sha256 "10f2c62c8cd11939fae75af549df08b3b0c6b4b04aace1158cd34af836f78e80" url "https://simpleapps.eu/simplemind/SM2Mac_G7Ynr4BfJYzhbHtCCTr/SimpleMindMacOS#{version.csv.first.no_dots}#{version.csv.second}.dmg" name "SimpleMind" desc "Cross-platform mind mapping tool" homepage "https://simpleapps.eu/" livecheck do url "https://simpleapps.eu/download/full-edition/simplemind-pro-mac/" regex(%r{\s*Version:\s*v?(\d+(?:\.\d+)+)\s+([a-z0-9]+)\s*}i) strategy :page_match do |page, regex| page.scan(regex).map { |match| "#{match[0]},#{match[1]}" } end end auto_updates true depends_on macos: ">= :high_sierra" app "SimpleMind Pro.app" zap trash: [ "~/Library/Caches/com.modelmakertools.simplemindosx", "~/Library/Preferences/com.modelmakertools.simplemindosx.plist", ] end