Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / a / affinity-designer.rb
blob201565c05372d63272949141012d7bab3e070663
1 cask "affinity-designer" do
2   version "2.5.7,2948"
3   sha256 "a31b2b884230ae00f635b2a904803762b18a4191df2bdf0847753d875c1df1ec"
5   url "https://affinity-update.s3.amazonaws.com/mac2/retail/Affinity%20Designer%20#{version.csv.first.major}%20Affinity%20Store%20#{version.csv.second}.zip",
6       verified: "affinity-update.s3.amazonaws.com/"
7   name "Affinity Designer #{version.csv.first.major}"
8   desc "Professional graphic design software"
9   homepage "https://affinity.serif.com/en-us/designer/"
11   livecheck do
12     url "https://go.seriflabs.com/affinity-update-mac-retail-designer#{version.csv.first.major}"
13     strategy :sparkle
14   end
16   auto_updates true
17   depends_on macos: ">= :catalina"
19   app "Affinity Designer #{version.csv.first.major}.app"
21   zap trash: [
22     "~/Library/Application Support/Affinity Designer #{version.csv.first.major}",
23     "~/Library/Caches/com.seriflabs.affinitydesigner#{version.csv.first.major}",
24     "~/Library/HTTPStorages/com.seriflabs.affinitydesigner#{version.csv.first.major}",
25     "~/Library/Preferences/com.seriflabs.affinitydesigner#{version.csv.first.major}.plist",
26     "~/Library/Saved Application State/com.seriflabs.affinitydesigner#{version.csv.first.major}.savedState",
27     "~/Library/WebKit/com.seriflabs.affinitydesigner#{version.csv.first.major}",
28   ]
29 end