1 cask "visual-paradigm" do
2 arch arm: "AArch64", intel: "WithJRE"
4 version "17.2,20241201"
5 sha256 arm: "8718848c99b429b699862b80e136927a7020035939d01aa4f68ce116da2ab14e",
6 intel: "7db4fcd3dc79fda28151a39462042ac841b3760e3dce6911483d0e87316f5e19"
8 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"
10 desc "UML, SysML, BPMN modelling platform"
11 homepage "https://www.visual-paradigm.com/"
14 url "https://www.visual-paradigm.com/downloads/vp/checksum.html"
15 regex(%r{/vp(\d+(?:\.\d+)+)/(\d+)/checksum\.html}i)
16 strategy :header_match do |headers, regex|
17 match = headers["location"]&.match(regex)
20 "#{match[1]},#{match[2]}"
24 app "Visual Paradigm.app"
27 "~/Library/Application Support/Visual Paradigm",
28 "~/Library/Application Support/VisualParadigm",
29 "~/Library/Saved Application State/com.install4j.1106-5897-7327-6550.5.savedState",