excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / write.rb
blobe8a4a11acedbd97679a44b76c9a64e918ece0ee3
1 cask "write" do
2   version "3.0.0"
3   sha256 "036e75f00f47c3dc33cdddfe7b2449d5bcff696992389138467de1f9757b6c57"
5   url "http://www.styluslabs.com/write/write#{version.no_dots}.dmg"
6   name "Write"
7   desc "Word processor for handwriting"
8   homepage "http://www.styluslabs.com/"
10   livecheck do
11     url "http://www.styluslabs.com/download/write-dmg"
12     regex(/write[._-]?v?(\d+)\.dmg/i)
13     strategy :header_match do |header, regex|
14       match = header["location"]&.match(regex)
15       next if match.blank?
17       match[1].include?(".") ? match[1] : match[1].sub(/(\d)(\d)(\d)/, '\1.\2.\3')
18     end
19   end
21   app "Write.app"
23   zap trash: [
24     "~/.config/styluslabs",
25     "~/Library/Saved Application State/com.styluslabs.write3mac.savedState",
26   ]
28   caveats do
29     requires_rosetta
30   end
31 end