Skip to content

Commit

Permalink
iexplorer: fix livecheck
Browse files Browse the repository at this point in the history
Co-authored-by: Klaus Hipp <[email protected]>
  • Loading branch information
eleanordoesntcode and khipp committed Jan 14, 2025
1 parent ee9608b commit 2cd110d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Casks/i/iexplorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
homepage "https://macroplant.com/iexplorer"

livecheck do
url "https://macroplant.com/iexplorer/mac/v#{version.csv.first.major}/appcast"
url "https://macroplant.com/iexplorer/appcast"
regex(%r{/(\d+)/iExplorer[._-]v?(\d+(?:\.\d+)+)\.dmg}i)
strategy :sparkle do |item, regex|
match = item.url.match(regex)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?

"#{item.version},#{match[1]}"
"#{match[2]},#{match[1]}"
end
end

Expand Down

0 comments on commit 2cd110d

Please sign in to comment.