Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viable 1b12 (new cask) #170763

Merged
merged 3 commits into from
Apr 7, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Casks/v/viable.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cask "viable" do

Check failure on line 1 in Casks/v/viable.rb

View workflow job for this annotation

GitHub Actions / test viable (macos-13, intel)

Version '1b12,2023.11' differs from '' retrieved by livecheck.

Check failure on line 1 in Casks/v/viable.rb

View workflow job for this annotation

GitHub Actions / test viable (macos-14, arm)

Version '1b12,2023.11' differs from '' retrieved by livecheck.
version "1b12,2023.11"
sha256 "6613cf7f0ae9a6737eeec8a15f3110e53cb6986b51f3a236913046e8d3769d00"

url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/viable#{version.csv.first}.zip",
verified: "eclecticlightdotcom.files.wordpress.com/"
name "viable"
desc "Create and run macOS virtual machines on Apple silicon Macs"
homepage "https://eclecticlight.co/virtualisation-on-apple-silicon"

livecheck do
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/viable[._-]?v?(\d+(?:\.\d+)*\w?)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2]},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :monterey"

app "viable#{version.csv.first}/Viable.app"

zap trash: [

Check failure on line 25 in Casks/v/viable.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-13)

Cask/ArrayAlphabetization: Avoid single-element arrays by removing the []
"~/Library/Preferences/co.eclecticlight.Viable.plist",
]
end
Loading