cask "visual-paradigm-ce" do arch arm: "AArch64", intel: "WithJRE" version "17.2,20241101" sha256 arm: "920907af322487102589952342f1a15f2b10381ea77ad842ea5d58db377fd0c7", intel: "edd69a729c6f0e9f6539cdb9e21c6c2b7e3130740f79f68f9ac1fb95dcee5316" url "https://www.visual-paradigm.com/downloads/vpce/Visual_Paradigm_CE_#{version.csv.first.dots_to_underscores}_#{version.csv.second}_OSX_#{arch}.dmg" name "Visual Paradigm Community Edition" desc "UML, SysML, BPMN modelling platform" homepage "https://www.visual-paradigm.com/" livecheck do url "https://www.visual-paradigm.com/downloads/vpce/checksum.html" regex(%r{/vpce(\d+(?:\.\d+)+)/(\d+)/checksum\.html}i) strategy :header_match do |headers, regex| match = headers["location"]&.match(regex) next if match.blank? "#{match[1]},#{match[2]}" end end # Renamed to avoid conflict with visual-paradigm. app "Visual Paradigm.app", target: "Visual Paradigm CE.app" zap trash: [ "~/Library/Application Support/Visual Paradigm", "~/Library/Application Support/VisualParadigm", "~/Library/Saved Application State/com.install4j.1106-5897-7327-6550.5.savedState", ] end