cask "visual-paradigm" do arch arm: "AArch64", intel: "WithJRE" version "17.2,20241101" sha256 arm: "16263a6a084412ac2529fe63940b342844a51583403644378abde6a43245dcd2", intel: "cd00cd01dfe9589914b81cc49063e709a4a0103a4cdbe508fda812deb5049051" url "https://www.visual-paradigm.com/downloads/vp#{version.csv.first}/#{version.csv.second}/Visual_Paradigm_#{version.csv.first.dots_to_underscores}_#{version.csv.second}_OSX_#{arch}.dmg" name "Visual Paradigm" desc "UML, SysML, BPMN modelling platform" homepage "https://www.visual-paradigm.com/" livecheck do url "https://www.visual-paradigm.com/downloads/vp/checksum.html" regex(%r{/vp(\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 app "Visual Paradigm.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