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

aerial@beta: update livecheck #193464

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all 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
16 changes: 14 additions & 2 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@
desc "Apple TV Aerial screensaver"
homepage "https://aerialscreensaver.github.io/"

# Beta releases are marked as pre-release, so we have to use the
# `GithubReleases` strategy to check all recent releases.
livecheck do
url "https://github.com/JohnCoates/Aerial/releases?q=prerelease%3Atrue&expanded=true"
regex(/^v?(\d+(?:\.\d+)*beta\d+)$/i)
url :url
regex(/^v?(\d+(?:\.\d+)*(?:[._-]?beta\d+)?)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
end

conflicts_with cask: "aerial"
Expand Down
Loading