From be93b4d3f2cafe98fac099e58ebd6b46094393de Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Wed, 7 Feb 2024 20:18:02 +0000 Subject: [PATCH] elgato-camera-hub: update livecheck --- Casks/e/elgato-camera-hub.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Casks/e/elgato-camera-hub.rb b/Casks/e/elgato-camera-hub.rb index 4edc915ef6..44c1af1958 100644 --- a/Casks/e/elgato-camera-hub.rb +++ b/Casks/e/elgato-camera-hub.rb @@ -8,8 +8,10 @@ cask "elgato-camera-hub" do homepage "https://www.elgato.com/ww/en/s/downloads" livecheck do - url "https://www.elgato.com/graphql?query=query%20contentJson(%24identifier%3A%5BString%5D%24contentType%3AString%24options%3AContentJsonOptionsInput)%7BcontentJson(identifiers%3A%24identifier%20contentType%3A%24contentType%20options%3A%24options)%7Bidentifier%20entries%7D%7D&operationName=contentJson&variables=%7B%22contentType%22%3A%22downloads%22%2C%22identifier%22%3A%5B%22downloads%22%5D%2C%22options%22%3A%7B%22level%22%3A1%7D%7D&locale=en-US" - regex(/Camera[._-]Hub[._-]v?(\d+(?:\.\d+)+)\.pkg/i) + url "https://gc-updates.elgato.com/mac/echm-update/final/app-version-check.json.php" + strategy :json do |json| + json.dig("Manual", "Version") + end end depends_on macos: ">= :big_sur"