Skip to content

Commit 79a2283

Browse files
Merge pull request #170763 from mariolopjr/add-viable-cask
2 parents 2cbb76c + d585045 commit 79a2283

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Casks/v/viable.rb

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cask "viable" do
2+
version "1b12,2023.11"
3+
sha256 "6613cf7f0ae9a6737eeec8a15f3110e53cb6986b51f3a236913046e8d3769d00"
4+
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"
10+
11+
livecheck do
12+
url :homepage
13+
regex(%r{href=.*?/uploads/(\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
20+
21+
depends_on macos: ">= :monterey"
22+
23+
app "viable#{version.csv.first}/Viable.app"
24+
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

0 commit comments

Comments
 (0)