excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / visual-paradigm-ce.rb
blob3096ac97233cc0b7e1b710129995a5269bba9f70
1 cask "visual-paradigm-ce" do
2   arch arm: "AArch64", intel: "WithJRE"
4   version "17.2,20241201"
5   sha256 arm:   "1c11c585fbf6b1517fa22447ab59f30d4e6fac4bf4c4bf2f7ee7f5043727d867",
6          intel: "12bc8abe944542354cb8abacfe0015c569405cc19cc56346c35cba601abda8d8"
8   url "https://www.visual-paradigm.com/downloads/vpce/Visual_Paradigm_CE_#{version.csv.first.dots_to_underscores}_#{version.csv.second}_OSX_#{arch}.dmg"
9   name "Visual Paradigm Community Edition"
10   desc "UML, SysML, BPMN modelling platform"
11   homepage "https://www.visual-paradigm.com/"
13   livecheck do
14     url "https://www.visual-paradigm.com/downloads/vpce/checksum.html"
15     regex(%r{/vpce(\d+(?:\.\d+)+)/(\d+)/checksum\.html}i)
16     strategy :header_match do |headers, regex|
17       match = headers["location"]&.match(regex)
18       next if match.blank?
20       "#{match[1]},#{match[2]}"
21     end
22   end
24   # Renamed to avoid conflict with visual-paradigm.
25   app "Visual Paradigm.app", target: "Visual Paradigm CE.app"
27   zap trash: [
28     "~/Library/Application Support/Visual Paradigm",
29     "~/Library/Application Support/VisualParadigm",
30     "~/Library/Saved Application State/com.install4j.1106-5897-7327-6550.5.savedState",
31   ]
32 end