homebrew-cask/Casks/focus.rb

27 lines
605 B
Ruby

cask "focus" do
version "1.14.0"
sha256 "949eec962bc3ac3793863f570182b378777aa7a13f12a0ea3c06f9118fce838b"
url "https://heyfocus.com/uploads/Focus-v#{version}.zip"
name "Focus"
desc "Website and application blocker"
homepage "https://heyfocus.com/"
livecheck do
url "https://heyfocus.com/focus.zip"
strategy :header_match
end
depends_on macos: ">= :sierra"
app "Focus.app"
uninstall quit: "BradJasper.focus"
zap trash: [
"~/Library/Application Support/Focus/",
"~/Library/Caches/BradJasper.focus/",
"~/Library/Preferences/BradJasper.focus.plist",
]
end