Skip to content

Commit

Permalink
Merge pull request #185889 from Homebrew/update-onyx
Browse files Browse the repository at this point in the history
onyx: update livecheck
  • Loading branch information
chenrui333 authored Sep 18, 2024
2 parents 7b1eb80 + 2bd07d6 commit e708679
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Casks/o/onyx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@
on_sequoia do
version "4.7.0"

url "https://www.titanium-software.fr/download/beta/OnyX.dmg"
url "https://www.titanium-software.fr/download/15/OnyX.dmg"
end

name "OnyX"
desc "Verify system files structure, run miscellaneous maintenance and more"
homepage "https://www.titanium-software.fr/en/onyx.html"

livecheck do
url :homepage
regex(/>\s*OnyX\s+v?(\d+(?:\.\d+)+)\s+for\s+[\w\s.-]*\s+#{MacOS.version}\s*</i)
url "https://www.titanium-software.fr/download/#{MacOS.version}/OnyX.plist"
strategy :xml do |xml|
xml.elements["//key[text()='Version']"]&.next_element&.text&.strip
end
end

depends_on macos: [
Expand Down

0 comments on commit e708679

Please sign in to comment.