Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / a / arturia-software-center.rb
blob2da83489ea88c1cfa62f65998b8de86bd6411b94
1 cask "arturia-software-center" do
2   version "2.8.2.2787"
3   sha256 "2001db0a0bedbe041043808f2c14cb037a23ca1a83ba9b2da6ea4851f0677fff"
5   url "https://dl.arturia.net/products/asc/soft/Arturia_Software_Center__#{version.dots_to_underscores}.pkg",
6       verified: "dl.arturia.net/"
7   name "Arturia Software Center"
8   desc "Installer and license activation for Arturia products"
9   homepage "https://www.arturia.com/technology/asc"
11   livecheck do
12     url "https://www.arturia.com/api/resources?slugs=asc&types=soft"
13     strategy :json do |json|
14       json.map do |item|
15         next if item["platform_type"] != "mac"
17         item["version"]
18       end
19     end
20   end
22   auto_updates true
24   pkg "Arturia_Software_Center__#{version.dots_to_underscores}.pkg"
26   uninstall launchctl: "com.Arturia.ArturiaSoftwareCenterAgent",
27             pkgutil:   [
28               "com.Arturia.ArturiaSoftwareCenter.fonts",
29               "com.Arturia.ArturiaSoftwareCenter.resources",
30             ]
32   zap delete: [
33         "/Library/Arturia/Arturia Software Center",
34         "/Library/ArturiaSC/",
35       ],
36       trash:  [
37         "~/Library/Caches/com.Arturia.ArturiaSoftwareCenter",
38         "~/Library/Saved Application State/com.Arturia.ArturiaSoftwareCenter.savedState",
39         "~/Library/WebKit/com.Arturia.ArturiaSoftwareCenter",
40       ],
41       rmdir:  "/Library/Arturia"
42 end