Skip to content

Commit

Permalink
ocenaudio: update livecheck
Browse files Browse the repository at this point in the history
The existing `livecheck` block for `ocenaudio` checks the upstream
changelog page and parses the version links in the HTML. This works
but each of the cask `url`s return a 200 response that has a
`Content-Disposition` header with a versioned filename, so it makes
more sense to check that instead. These files use the same version at
the moment but using `HeaderMatch` to identify the version from the
`url` response ensures that we're checking each upstream file version
instead of assuming that they will always be the same.
  • Loading branch information
samford committed Sep 17, 2024
1 parent ff098f0 commit 0584fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Casks/o/ocenaudio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
homepage "https://www.ocenaudio.com/en"

livecheck do
url "https://www.ocenaudio.com/changelog"
regex(/download\?version=v?(\d+(?:\.\d+)+)/i)
url :url
strategy :header_match
end

depends_on macos: ">= :sierra"
Expand Down

0 comments on commit 0584fca

Please sign in to comment.