excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / visual-paradigm.rb
blobf199174a6ddb98e9ae1563a7449c0c7e64304eab
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"
9   name "Visual Paradigm"
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/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)
18       next if match.blank?
20       "#{match[1]},#{match[2]}"
21     end
22   end
24   app "Visual Paradigm.app"
26   zap trash: [
27     "~/Library/Application Support/Visual Paradigm",
28     "~/Library/Application Support/VisualParadigm",
29     "~/Library/Saved Application State/com.install4j.1106-5897-7327-6550.5.savedState",
30   ]
31 end