From 71af26f2e3e01e6ab44f040b64a0982cb815a972 Mon Sep 17 00:00:00 2001 From: Daeho Ro Date: Sat, 14 Dec 2024 12:58:48 +0900 Subject: [PATCH] cloud-pbx: 44.11.0 --- Casks/c/cloud-pbx.rb | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/Casks/c/cloud-pbx.rb b/Casks/c/cloud-pbx.rb index eca040d16776..91385b3b3d8a 100644 --- a/Casks/c/cloud-pbx.rb +++ b/Casks/c/cloud-pbx.rb @@ -1,29 +1,36 @@ cask "cloud-pbx" do - version "22.9.43.12" - sha256 "ce01e374cd476233b0078243961eaf85a4d8db62dfa5369197a02f8a461c3961" + arch arm: "arm", intel: "intel" - url "https://cpbx-hilfe.deutschland-lan.de/downloads/desktop-clients/cloud-pbx.osx-#{version}", - verified: "cpbx-hilfe.deutschland-lan.de/downloads/desktop-clients/" + on_arm do + version "44.11.0" + sha256 "ba3b20d7811e000f6cd7214a720aa157ba9b0422a8269cdd50eafa675518b369" + end + on_intel do + version "44.11" + sha256 "01de6c9e1ebb967939b43419dd4f1c6345a9563aa56f88e114a14e7046353342" + end + + url "https://cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/desktop-clients/cloud-pbx-2.0-#{arch}_v#{version}", + verified: "cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/desktop-clients/" name "Cloud PBX" desc "Cloud-based telephone system" homepage "https://geschaeftskunden.telekom.de/internet-dsl/tarife/festnetz-internet-dsl/companyflex/cloud-pbx" livecheck do url "https://cpbx-hilfe.deutschland-lan.de/de/direkthilfe/hilfe-downloads/downloads" - regex(%r{href=.*?/cloud[._-]pbx\.osx[._-]v?(\d+(?:\.\d+)+)}i) + regex(%r{href=.*?/cloud[._-]pbx[._-]2\.0[._-]#{arch}[._-]v?(\d+(?:\.\d+)+)}i) end - app "Cloud PBX.app" + app "Cloud PBX 2.0.app" zap trash: [ + "~/Library/Application Support/Cisco Spark", "~/Library/Application Support/Telekom Deutschland GmbH", "~/Library/Caches/Telekom Deutschland GmbH", + "~/Library/Preferences/Cisco-Systems.Spark.plist", "~/Library/Preferences/com.broadsoft.communicator.plist", "~/Library/Preferences/de.deutschland-lan.Cloud PBX.plist", + "~/Library/Saved Application State/Cisco-Systems.Spark.savedState", "~/Library/Saved Application State/com.broadsoft.communicator.savedState", ] - - caveats do - requires_rosetta - end end