From 69ac7292975c1aec67a7beef17f241062299a72d Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:04:28 -0500 Subject: [PATCH] wireshark: update `livecheck` to get latest version --- Casks/w/wireshark.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Casks/w/wireshark.rb b/Casks/w/wireshark.rb index df60500e45..99c5c66cf3 100644 --- a/Casks/w/wireshark.rb +++ b/Casks/w/wireshark.rb @@ -20,9 +20,14 @@ cask "wireshark" do desc "Network protocol analyzer" homepage "https://www.wireshark.org/" + # This appcast sometimes uses a newer pubDate for an older version, so we + # have to ignore the default `Sparkle` strategy sorting (which involves the + # pubDate) and simply work with the version numbers. livecheck do url "https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/#{livecheck_arch}64/en-US/stable.xml" - strategy :sparkle + strategy :sparkle do |items| + items.map(&:nice_version) + end end auto_updates true