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