cask "edrawmind" do version "11.0.5,5378" sha256 "eadd4e013bd0267597810d0564ae72f776b0ceb8a26869554050695f9c1949b5" url "https://download.edrawsoft.com/cbs_down/edrawmind_full#{version.csv.second}.zip" name "EdrawMind" desc "Mind mapping software" homepage "https://www.edrawsoft.com/edrawmind/" livecheck do url "https://www.edrawsoft.com/download-edrawmind.html" strategy :page_match do |page| match = page.match(/for\s+Mac.*?(\d+(?:\.\d+)+).*?edrawmind[._-]full(\d+)\./m) "#{match[1]},#{match[2]}" if match end end app "EdrawMind.app" zap trash: [ "~/Library/Preferences/com.edrawsoft.mindmaster.plist", "~/Library/Saved Application State/com.edrawsoft.mindmaster.savedState", ] end