mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
The migration of `orka.rb` and then `o*.rb` has worked well without complaint so: let's move everything else, too.
26 lines
722 B
Ruby
26 lines
722 B
Ruby
cask "write" do
|
|
version "3.0.0"
|
|
sha256 "036e75f00f47c3dc33cdddfe7b2449d5bcff696992389138467de1f9757b6c57"
|
|
|
|
url "http://www.styluslabs.com/write/write#{version.no_dots}.dmg"
|
|
name "Write"
|
|
desc "Word processor for handwriting"
|
|
homepage "http://www.styluslabs.com/"
|
|
|
|
livecheck do
|
|
url "http://www.styluslabs.com/download/write-dmg"
|
|
regex(/write[._-]?v?(\d+)\.dmg/i)
|
|
strategy :header_match do |header, regex|
|
|
version = header["location"].match(regex)[1]
|
|
version.include?(".") ? version : version.sub(/(\d)(\d)(\d)/, '\1.\2.\3')
|
|
end
|
|
end
|
|
|
|
app "Write.app"
|
|
|
|
zap trash: [
|
|
"~/.config/styluslabs",
|
|
"~/Library/Saved Application State/com.styluslabs.write3mac.savedState",
|
|
]
|
|
end
|