excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / scrivener.rb
blob5da91e8406106f5ded28481ebe6c7cdedfac6921
1 cask "scrivener" do
2   version "3.3.6,16305,1013"
3   sha256 "57800e892f8eb518b7f09184f9fd960df2b58c0e1e07211f8aaa57acc99b1c54"
5   url "https://scrivener.s3.amazonaws.com/mac_updates/Scrivener_#{version.csv.third}_#{version.csv.second}.zip",
6       verified: "scrivener.s3.amazonaws.com/"
7   name "Scrivener"
8   desc "Word processing software with a typewriter style"
9   homepage "https://www.literatureandlatte.com/scrivener/overview"
11   livecheck do
12     url "https://www.literatureandlatte.com/downloads/scrivener-#{version.major}.xml"
13     regex(/scrivener[._-](\d+(?:\.\d+)?+)[._-]/i)
14     strategy :sparkle do |item, regex|
15       "#{item.short_version},#{item.version},#{item.url[regex, 1]}"
16     end
17   end
19   auto_updates true
20   depends_on macos: ">= :high_sierra"
22   app "Scrivener.app"
24   zap trash: [
25     "~/Library/Application Support/Scrivener",
26     "~/Library/Caches/com.literatureandlatte.scrivener*",
27     "~/Library/Preferences/com.literatureandlatte.scrivener*.plist",
28   ]
29 end