From 9cedad1d0b16f03ec3be91f830dfd432c60ee609 Mon Sep 17 00:00:00 2001 From: Aaron-212 Date: Sat, 1 Jun 2024 14:33:06 +0800 Subject: [PATCH] fix livecheck of Google Chrome Signed-off-by: Aaron-212 --- Casks/g/google-chrome.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Casks/g/google-chrome.rb b/Casks/g/google-chrome.rb index cdf3374ed4ef..10f442c25a8f 100644 --- a/Casks/g/google-chrome.rb +++ b/Casks/g/google-chrome.rb @@ -8,10 +8,8 @@ homepage "https://www.google.com/chrome/" livecheck do - url :url - strategy :extract_plist do |versions| - versions.values.filter_map(&:short_version).first - end + url "https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Mac" + regex(/"version":\s*"v?(\d+(?:\.\d+)+)"/i) end auto_updates true