cask "steinberg-activation-manager" do version "1.5.3.1212-be70dff8-4528-38e7-8963-c8d89449956e" sha256 "cf7c4194df67577ecbaef59fc5b5c7bd91a4b2c8e8ef729633d75fd839b56015" url "https://download.steinberg.net/static_content/runtime-components/steinberg-activation-manager/#{version}/Steinberg_Activation_Manager_Installer_mac.dmg" name "Steinberg Activation Manager" desc "Licenses manager for Steinberg Licensing" homepage "https://o.steinberg.net/en/support/content_and_accessories/steinberg_activation_manager.html" livecheck do url "https://r.mb.steinberg.net/rc-sam-mac" regex(%r{([^/]+)/Steinberg_Activation_Manager_Installer_mac\.dmg}i) strategy :header_match end depends_on macos: ">= :mojave" pkg "Steinberg Activation Manager.pkg" uninstall quit: [ "com.steinberg.SteinbergActivationManager", "com.steinberg.SteinbergLicenseEngine", ], pkgutil: [ "com.steinberg.activationmanager", "com.steinberg.licenseengine", "com.steinberg.licenseengineaccess", "com.steinberg.silkupdatehelper", ], delete: "/Applications/Steinberg Activation Manager.app", rmdir: "/Library/Application Support/Steinberg/Activation Manager" zap trash: [ "~/Library/Application Support/Steinberg/Activation Manager", "~/Library/Caches/Steinberg Activation Manager", "~/Library/Saved Application State/com.steinberg.SteinbergActivationManager.savedState", ] end