From 2cd110d5a15168bd58e1d0f706f598db0de956fb Mon Sep 17 00:00:00 2001 From: ellie is not coding in the slightest <166862894+eleanordoesntcode@users.noreply.github.com> Date: Tue, 14 Jan 2025 18:08:30 +0100 Subject: [PATCH] iexplorer: fix livecheck Co-authored-by: Klaus Hipp --- Casks/i/iexplorer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Casks/i/iexplorer.rb b/Casks/i/iexplorer.rb index 374dbd6363f8..28106cb99280 100644 --- a/Casks/i/iexplorer.rb +++ b/Casks/i/iexplorer.rb @@ -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