excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / affinity-designer.rb
bloba1ce19debb91ef6e2689353e44c7c4d2361ae706
1 cask "affinity-designer" do
2   version "2.5.6,2887"
3   sha256 "c239b3dd39316565faac6ad69ca7e41dda51134b6eab014589c5a26d5a46a00b"
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 do |item|
14       "#{item.short_version},#{item.version}"
15     end
16   end
18   auto_updates true
19   depends_on macos: ">= :catalina"
21   app "Affinity Designer #{version.csv.first.major}.app"
23   zap trash: [
24     "~/Library/Application Support/Affinity Designer #{version.csv.first.major}",
25     "~/Library/Caches/com.seriflabs.affinitydesigner#{version.csv.first.major}",
26     "~/Library/HTTPStorages/com.seriflabs.affinitydesigner#{version.csv.first.major}",
27     "~/Library/Preferences/com.seriflabs.affinitydesigner#{version.csv.first.major}.plist",
28     "~/Library/Saved Application State/com.seriflabs.affinitydesigner#{version.csv.first.major}.savedState",
29     "~/Library/WebKit/com.seriflabs.affinitydesigner#{version.csv.first.major}",
30   ]
31 end