From 4e39461a53ba15423fbe525f025c86660b4a0635 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Fri, 27 Oct 2023 00:19:53 -0400 Subject: [PATCH] genymotion cask now installs 3.5.0 for Monterey & older --- Casks/g/genymotion.rb | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Casks/g/genymotion.rb b/Casks/g/genymotion.rb index e225951bc1..cae59abe30 100644 --- a/Casks/g/genymotion.rb +++ b/Casks/g/genymotion.rb @@ -1,19 +1,25 @@ cask "genymotion" do - version "3.5.1" - sha256 "cc4bc949b8e5744272dbb77c798035ff009740d0eb8bd251b2b5d82daa2113fb" + on_monterey :or_older do + version "3.5.0" + sha256 "c4be3f53a85908027340b7529dcdc79e7a6b19572056b354fc94d9688c0c10f7" + livecheck do + skip "Legacy version" + end + end + on_ventura :or_newer do + version "3.5.1" + sha256 "cc4bc949b8e5744272dbb77c798035ff009740d0eb8bd251b2b5d82daa2113fb" + livecheck do + url "https://www.genymotion.com/download/" + regex(/href=.*?Genymotion[._-]v?(\d+(?:\.\d+)+)\.(?:dmg|pkg)/i) + end + end url "https://dl.genymotion.com/releases/genymotion-#{version}/genymotion-#{version}.dmg" name "Genymotion" desc "Android emulator" homepage "https://www.genymotion.com/" - livecheck do - url "https://www.genymotion.com/download/" - regex(/href=.*?Genymotion[._-]v?(\d+(?:\.\d+)+)\.(?:dmg|pkg)/i) - end - - depends_on macos: ">= :ventura" - app "Genymotion.app" app "Genymotion Shell.app" binary "#{appdir}/Genymotion Shell.app/Contents/MacOS/genyshell"