cask "focusrite-control" do version "3.18" sha256 "75e946eb0e1700df42a4220ac2477db5522bdacb739a6ab85669baa98248b4f2" url "https://fael-downloads-prod.focusrite.com/customer/prod/downloads/focusrite-control-#{version}.dmg" name "Focusrite Control" desc "Focusrite interface controller" homepage "https://focusrite.com/en" livecheck do url "https://downloads.focusrite.com/focusrite/scarlett-3rd-gen/scarlett-solo-3rd-gen" regex(%r{href=.*?/focusrite[._-]control[._-]v?(\d+(?:\.\d+)+)\.dmg}i) end pkg "Focusrite Control.pkg" uninstall launchctl: "com.focusrite.ControlServer", pkgutil: "com.focusrite.FocusriteControl" zap delete: [ "/Library/Application Support/Focusrite", "/Library/LaunchDaemons/com.focusrite.ControlServer.plist", "/Library/Logs/Focusrite Control", ], trash: [ "~/Library/Application Support/Focusrite", "~/Library/Caches/com.juce.locks", "~/Library/Logs/Focusrite Control", "~/Library/Saved Application State/com.focusrite.FocusriteControl.savedState", ] end