1 cask "steinberg-library-manager" do
2 version "3.2.50.300,99604c6c-120b-397a-822a-80ea66cfb62c"
3 sha256 "98dafe423066d9034ffa03262cae666dd6073ce34710ee541391c8461dcd5875"
5 url "https://download.steinberg.net/static_content/runtime-components/steinberg-library-manager/#{version.csv.first}-#{version.csv.second}/Steinberg_Library_Manager_mac.dmg"
6 name "Steinberg Library Manager"
7 desc "Library manager for Steinberg software"
8 homepage "https://o.steinberg.net/en/support/content_and_accessories/steinberg_library_manager.html"
11 url "https://r.mb.steinberg.net/rc-slm-mac"
12 regex(%r{/v?(\d+(?:\.\d+)+)-([^/]+)/Steinberg_Library_Manager_mac\.dmg}i)
13 strategy :header_match do |headers, regex|
14 match = headers["location"]&.match(regex)
17 "#{match[1]},#{match[2]}"
21 depends_on macos: ">= :high_sierra"
23 pkg "Library Manager.pkg"
25 uninstall launchctl: "com.steinberg.HALionLibraryInstallerHelper",
26 quit: "com.steinberg.HALionLibraryManager",
27 pkgutil: "com.steinberg.SteinbergLibraryManager",
28 delete: "/Applications/Steinberg Library Manager.app"
31 "/Library/LaunchDaemons/com.steinberg.HALionLibraryInstallerHelper.plist",
32 "/Library/PrivilegedHelperTools/com.steinberg.HALionLibraryInstallerHelper",
33 "~/Library/Preferences/Steinberg Library Manager",