cask "affinity-designer" do version "2.5.5,2636" sha256 "2e4e5a660dfed290b6d1fbd14a5b73f67123b49e9e551258a9cd69d64ee16e49" url "https://affinity-update.s3.amazonaws.com/mac2/retail/Affinity%20Designer%20#{version.csv.first.major}%20Affinity%20Store%20#{version.csv.second}.zip", verified: "affinity-update.s3.amazonaws.com/" name "Affinity Designer #{version.csv.first.major}" desc "Professional graphic design software" homepage "https://affinity.serif.com/en-us/designer/" livecheck do url "https://go.seriflabs.com/affinity-update-mac-retail-designer#{version.csv.first.major}" strategy :sparkle do |item| "#{item.short_version},#{item.version}" end end auto_updates true depends_on macos: ">= :catalina" app "Affinity Designer #{version.csv.first.major}.app" zap trash: [ "~/Library/Application Support/Affinity Designer #{version.csv.first.major}", "~/Library/Caches/com.seriflabs.affinitydesigner#{version.csv.first.major}", "~/Library/HTTPStorages/com.seriflabs.affinitydesigner#{version.csv.first.major}", "~/Library/Preferences/com.seriflabs.affinitydesigner#{version.csv.first.major}.plist", "~/Library/Saved Application State/com.seriflabs.affinitydesigner#{version.csv.first.major}.savedState", "~/Library/WebKit/com.seriflabs.affinitydesigner#{version.csv.first.major}", ] end