cask "lg-onscreen-control" do version "7.30,clVHLZBprha2LMY4GyIBsQ" sha256 "bb174c4158876f4c8a0c5393bb69aa20cd14817afd86278926299ff57b7ed070" url "https://gscs-b2c.lge.com/downloadFile?fileId=#{version.csv.second}" name "LG OnScreen Control" desc "Displays all connected LG monitor information" homepage "https://www.lg.com/us/support/monitors" # There is no page available specifically for the software # so we return the downloads from one of the popular products livecheck do url "https://www.lg.com/us/support/product/lg-27GN950-B.AUS" regex(/Mac[._-]OSC[._-]v?(\d+(?:\.\d+)+)\.zip/i) strategy :page_match do |page, regex| json_string = page[/NEXT[._-]DATA[^>]*>\s*([^<]+)\s*