From ca197e0da556dfa8ed8e368022276cefdfcc2537 Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:38:26 +0800 Subject: [PATCH 1/3] wireshark 4.2.3 --- Casks/w/wireshark.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Casks/w/wireshark.rb b/Casks/w/wireshark.rb index d1c7338fd0..16eeee59a5 100644 --- a/Casks/w/wireshark.rb +++ b/Casks/w/wireshark.rb @@ -2,15 +2,15 @@ cask "wireshark" do arch arm: "Arm", intel: "Intel" livecheck_arch = on_arch_conditional arm: "arm", intel: "x86-" - version "4.2.2" + version "4.2.3" on_arm do - sha256 "c2fe529ba00f30af30c74d3db79cc353a6c4af75fa9bc6063e5a5b7388762dcc" + sha256 "b11d86f650f4f751fbff4d741b16cbe2d57a35d8b83e87dcbd159c6980eff7ff" depends_on macos: ">= :big_sur" end on_intel do - sha256 "528971b97c405f180d2532b92fec963c678575cbbacbf7a963936306e7f17260" + sha256 "cea02d3d36c1cb8568abeb42a50b5169a26fd179a3726f4451e167c61243b846" depends_on macos: ">= :high_sierra" end From 4b4b383a80555337a86fa77fbcfc803c59e4076e Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:57:04 +0800 Subject: [PATCH 2/3] bump macOS intel requirement to mojave for 4.2.3 --- Casks/w/wireshark.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/w/wireshark.rb b/Casks/w/wireshark.rb index 16eeee59a5..df60500e45 100644 --- a/Casks/w/wireshark.rb +++ b/Casks/w/wireshark.rb @@ -12,7 +12,7 @@ cask "wireshark" do on_intel do sha256 "cea02d3d36c1cb8568abeb42a50b5169a26fd179a3726f4451e167c61243b846" - depends_on macos: ">= :high_sierra" + depends_on macos: ">= :mojave" end url "https://2.na.dl.wireshark.org/osx/Wireshark%20#{version}%20#{arch}%2064.dmg" 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 3/3] 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