excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / viable.rb
blobe0ee89bda3e4b9bc75484b74aabc0a73517a831f
1 cask "viable" do
2   version "1b12,2023.11"
3   sha256 "6613cf7f0ae9a6737eeec8a15f3110e53cb6986b51f3a236913046e8d3769d00"
5   url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/viable#{version.csv.first}.zip",
6       verified: "eclecticlightdotcom.files.wordpress.com/"
7   name "Viable"
8   desc "Create and run macOS virtual machines on Apple silicon Macs"
9   homepage "https://eclecticlight.co/virtualisation-on-apple-silicon/"
11   livecheck do
12     url :homepage
13     regex(%r{href=.*?/(\d+)/(\d+)/viable[._-]?v?(\w+)\.zip}i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map do |match|
16         "#{match[2]},#{match[0]}.#{match[1]}"
17       end
18     end
19   end
21   depends_on macos: ">= :monterey"
23   app "viable#{version.csv.first}/Viable.app"
25   zap trash: [
26     "~/Library/Caches/co.eclecticlight.Viable",
27     "~/Library/HTTPStorages/co.eclecticlight.Viable",
28     "~/Library/Preferences/co.eclecticlight.Viable.plist",
29     "~/Library/Saved Application State/co.eclecticlight.Viable.savedState",
30   ]
31 end