From abf7a6097dc7bea9686500233932886339cc9033 Mon Sep 17 00:00:00 2001 From: lunaticare Date: Wed, 27 Nov 2024 00:49:18 +0000 Subject: [PATCH] samsung-magician 8.2.0.880 --- Casks/s/samsung-magician.rb | 51 ++++++++++++++++++++++++++++++ Casks/s/samsung-portable-ssd-t7.rb | 49 ---------------------------- cask_renames.json | 1 + 3 files changed, 52 insertions(+), 49 deletions(-) create mode 100644 Casks/s/samsung-magician.rb delete mode 100644 Casks/s/samsung-portable-ssd-t7.rb diff --git a/Casks/s/samsung-magician.rb b/Casks/s/samsung-magician.rb new file mode 100644 index 000000000000..b251b222c8e2 --- /dev/null +++ b/Casks/s/samsung-magician.rb @@ -0,0 +1,51 @@ +cask "samsung-magician" do + version "8.2.0.880" + sha256 "09fa6961389e27668d5d387920d753a33ae17b0ccce85462069acfb79a5c0420" + + url "https://download.semiconductor.samsung.com/resources/software-resources/Samsung_Magician_Installer_Official_#{version}.pkg" + name "Samsung Magician Software" + desc "Manage Samsung internal and portable SSDs, memory cards, and USB flash drives" + homepage "https://semiconductor.samsung.com/consumer-storage/support/tools/" + + livecheck do + url :homepage + regex(/href=.*?Samsung_Magician_Installer_Official[._-]v?(\d+(?:\.\d+)+)\.pkg/i) + end + + auto_updates true + + installer manual: "Samsung_Magician_Installer_Official_#{version}.pkg" + + uninstall launchctl: "com.samsung.magiciansvc", + quit: "/Applications/SamsungMagician.app", + kext: [ + "com.samsung.magicianpssd.driver", + "com.samsung.magicianpssd.driverX", + ], + pkgutil: [ + "com.samsung.magician.softwarepkg", + "com.samsung.magician.svc", + "com.samsung.magicianpssd.driverpkg", + "com.samsung.magicianpssd.driverXpkg", + "com.samsung.magicianpssduniversal.driverpkg", + "com.samsung.magicianpssduniversal.driverXpkg", + "com.samsung.portablessdplusuniversal.softwarepkg", + ], + delete: [ + "/Library/Extensions/SamsungMagicianPSSDDriver.kext", + "/Library/Extensions/SamsungMagicianPSSDDriverX.kext", + ] + + zap trash: [ + "~/Library/Application Support/Samsung Magician", + "~/Library/Application Support/Samsung/Samsung Magician", + "~/Library/LaunchAgents/com.samsung.magicianapp.plist", + "~/Library/LaunchAgents/com.samsung.magiciansvc.plist", + "~/Library/Saved Application State/com.samsung.magician.*", + ] + + caveats do + reboot + kext + end +end diff --git a/Casks/s/samsung-portable-ssd-t7.rb b/Casks/s/samsung-portable-ssd-t7.rb deleted file mode 100644 index d3a2e522b455..000000000000 --- a/Casks/s/samsung-portable-ssd-t7.rb +++ /dev/null @@ -1,49 +0,0 @@ -cask "samsung-portable-ssd-t7" do - version "1.7.5,1.0" - sha256 "43d45b6a8cf04eb1d7c13a951023581a3654f7fca0952aedf82aced896977672" - - url "https://semiconductor.samsung.com/resources/software-resources/SamsungPortableSSD_Setup_Mac_#{version.csv.second}.zip" - name "Samsung Portable SSD Software for T7" - desc "Software for Samsung external storage drives (T7 series)" - homepage "https://semiconductor.samsung.com/consumer-storage/support/tools/" - - livecheck do - url :homepage - regex(/SamsungPortableSSD[._-]Setup[._-]Mac[._-]v?(\d+(?:\.\d+)+)[._-]v?(\d+(?:\.\d+)+)/i) - strategy :page_match do |page, regex| - page.scan(regex).map { |match| "#{match[1]},#{match[0]}" } - end - end - - auto_updates true - - pkg "SamsungPortableSSD_Setup_Mac_#{version.csv.second}.pkg" - - uninstall launchctl: "com.samsung.portablessdplus.mon", - quit: [ - "/Applications/SamsungPortableSSD_#{version.csv.second}.app", - "com.samsung.portablessdplus.software", - ], - kext: "com.samsung.portablessd.driver", - pkgutil: [ - "com.samsung.portablessd.driverpkg", - "com.samsung.portablessdplus.softwarepkg", - "com.samsung.portablessdplusuniversal.softwarepkg", - ], - delete: [ - "/Applications/SamsungPortableSSD_#{version.csv.second}.app", - "/Library/Extensions/SamsungPortableSSDDriver*.kext", - ] - - zap trash: [ - "~/Library/Application Support/Portable_SSD", - "~/Library/Application Support/PortableSSD", - "~/Library/LaunchAgents/com.samsung.portablessdplus.mon.plist", - "~/Library/Saved Application State/com.samsung.portablessd*", - ] - - caveats do - reboot - kext - end -end diff --git a/cask_renames.json b/cask_renames.json index e5825e22fe86..b391fa2134d7 100644 --- a/cask_renames.json +++ b/cask_renames.json @@ -47,6 +47,7 @@ "pomodone": "roundpie", "qlc-plus": "qlc+", "remotion": "multiapp", + "samsung-portable-ssd-t7": "samsung-magician", "score": "ossia-score", "senabluetoothdevicemanager": "senadevicemanager", "simplistic": "jlutil",