diff --git a/Casks/r/ringcentral.rb b/Casks/r/ringcentral.rb index 3560377ff1..687094412e 100644 --- a/Casks/r/ringcentral.rb +++ b/Casks/r/ringcentral.rb @@ -1,10 +1,11 @@ cask "ringcentral" do - arch arm: "-arm" + arch arm: "-arm64" version "24.1.10" - sha256 :no_check + sha256 arm: "279b79671fb5f939d1579f00de0d93e4f027dc973e4c31b267eef776737650e1", + intel: "3117a3fce245d1791fa2f1aa0493970c2f52733d946eb17e7fe27e0c385b7ebe" - url "https://app.ringcentral.com/download/RingCentral#{arch}.pkg" + url "https://app.ringcentral.com/download/RingCentral-#{version}#{arch}.zip" name "RingCentral" desc "Team messaging, video meetings, and business phone" homepage "https://www.ringcentral.com/download.html" @@ -14,16 +15,18 @@ cask "ringcentral" do strategy :electron_builder end - pkg "RingCentral#{arch}.pkg" + auto_updates true + depends_on macos: ">= :high_sierra" - uninstall quit: "RingCentral", - pkgutil: "com.ringcentral.glip", - delete: "/Applications/RingCentral.app" + app "RingCentral.app" + + uninstall quit: "RingCentral" zap trash: [ - "~/Library/Application Support/RingCentral", - "~/Library/Logs/RingCentral", - "~/Library/Preferences/com.ringcentral.glip.plist", - "~/Library/Saved Application State/com.ringcentral.glip.savedState", - ] + "~/Library/Application Support/RingCentral", + "~/Library/Logs/RingCentral", + "~/Library/Preferences/com.ringcentral.glip.plist", + "~/Library/Saved Application State/com.ringcentral.glip.savedState", + ], + rmdir: "~/Documents/RingCentral" end