From 7ea8d3cd4fb344ccffad1888f781067f46a34099 Mon Sep 17 00:00:00 2001 From: Klaus Hipp Date: Wed, 18 Sep 2024 09:23:45 +0200 Subject: [PATCH] vk-messenger: update livecheck --- Casks/v/vk-messenger.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Casks/v/vk-messenger.rb b/Casks/v/vk-messenger.rb index bb18e70930086..30905b97f894a 100644 --- a/Casks/v/vk-messenger.rb +++ b/Casks/v/vk-messenger.rb @@ -9,8 +9,14 @@ homepage "https://vk.com/messenger" livecheck do - url :url - strategy :extract_plist + url "https://desktop.userapi.com/mac/master/latest.json" + strategy :json do |json| + version = json["version"] + build = json["build"] + next if version.blank? || build.blank? + + "#{version},#{build}" + end end app "VK Messenger.app"