-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
choosy: convert to on_system
blocks
#137630
Conversation
Casks/choosy.rb
Outdated
on_sierra do | ||
version "1.3" | ||
sha256 "cb1f40df11ac1b52354f4b81367462d2646a6d023c64bafe5022fcec52f796cd" | ||
|
||
prefpane "Choosy.prefPane" | ||
|
||
livecheck do | ||
skip "Legacy version" | ||
end | ||
end | ||
on_high_sierra do | ||
version "1.3" | ||
sha256 "cb1f40df11ac1b52354f4b81367462d2646a6d023c64bafe5022fcec52f796cd" | ||
|
||
prefpane "Choosy.prefPane" | ||
elsif MacOS.version <= :mojave | ||
|
||
livecheck do | ||
skip "Legacy version" | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rylan12 Is there a way to combine these two blocks together, to be able to target two specific versions?
CC: @p-linnane
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, unfortunately not in the way you're looking for. I guess one option that might make it clearer is to move the livecheck
blocks to their own set of on_system
blocks:
cask "choosy" do
on_el_capitan :or_older do
version "1.1"
sha256 "c6530d4e0dddbf47c6a8999bda8f3a5ef1857f4481b9325e56cfe00f05b2022c"
prefpane "Choosy.prefPane"
end
on_sierra do
version "1.3"
sha256 "cb1f40df11ac1b52354f4b81367462d2646a6d023c64bafe5022fcec52f796cd"
prefpane "Choosy.prefPane"
end
on_high_sierra do
version "1.3"
sha256 "cb1f40df11ac1b52354f4b81367462d2646a6d023c64bafe5022fcec52f796cd"
prefpane "Choosy.prefPane"
end
on_mojave do
version "2.1"
sha256 "758da621d3a92358885333b767d64b024197a8147a339b1a0d14e938673452f9"
pkg "Choosy.pkg"
end
on_catalina :or_newer do
version "2.3"
sha256 "b4fd6073b43ba7ce8697c6b3f400f2abec9196e10c6488d52970ed989ddb2a76"
pkg "Choosy.pkg"
end
url "https://downloads.choosyosx.com/choosy_#{version}.zip"
name "Choosy"
desc "Open links in any browser"
homepage "https://www.choosyosx.com/"
on_mojave :or_older do
livecheck do
skip "Legacy version"
end
end
on_catalina :or_newer do
livecheck do
url "https://www.choosyosx.com/sparkle/feed"
strategy :sparkle
end
end
end
#137512