cask "focusrite-control-2" do # NOTE: "2" is not a version number, but an intrinsic part of the product name version "1.419.0.25066" sha256 "7ee7f075f6346712b966127169b9429cb9fa33a1a510bc9e02348b53834a36a6" url "https://releases.focusrite.com/com.focusrite.focusrite-control/release/Focusrite-Control-2-#{version}.dmg" name "Focusrite Control 2" desc "Focusrite interface controller for devices of the 4th generation and newer" homepage "https://focusrite.com/software/focusrite-control-2" livecheck do url "https://releases.focusrite.com/com.focusrite.focusrite-control/release/focusrite-control.release.mac.xml" strategy :sparkle end auto_updates true depends_on macos: ">= :monterey" app "Focusrite Control 2.app" uninstall launchctl: "com.focusrite.ControlServer", quit: "com.focusrite.control" zap trash: [ "~/Library/Application Support/Focusrite", "~/Library/Caches/com.juce.locks", "~/Library/HTTPStorages/com.focusrite.control", "~/Library/Logs/Focusrite Control 2", "~/Library/Preferences/com.focusrite.control.plist", "~/Library/Saved Application State/com.focusrite.control.savedState", ] end