cask "arturia-software-center" do version "2.10.0.2970" sha256 "ebf561dee23eb580ca5784388d284c58a3c5d5c149048aac4505a488b6a590ca" url "https://dl.arturia.net/products/asc/soft/Arturia_Software_Center__#{version.dots_to_underscores}.pkg", verified: "dl.arturia.net/" name "Arturia Software Center" desc "Installer and license activation for Arturia products" homepage "https://www.arturia.com/technology/asc" livecheck do url "https://www.arturia.com/api/resources?slugs=asc&types=soft" strategy :json do |json| json.map do |item| next if item["platform_type"] != "mac" item["version"] end end end auto_updates true pkg "Arturia_Software_Center__#{version.dots_to_underscores}.pkg" uninstall launchctl: "com.Arturia.ArturiaSoftwareCenterAgent", pkgutil: [ "com.Arturia.ArturiaSoftwareCenter.fonts", "com.Arturia.ArturiaSoftwareCenter.resources", ] zap delete: [ "/Library/Arturia/Arturia Software Center", "/Library/ArturiaSC", ], trash: [ "~/Library/Caches/com.Arturia.ArturiaSoftwareCenter", "~/Library/Saved Application State/com.Arturia.ArturiaSoftwareCenter.savedState", "~/Library/WebKit/com.Arturia.ArturiaSoftwareCenter", ], rmdir: "/Library/Arturia" end