Files
homebrew-cask/Casks/f/freedom.rb

35 lines
1.1 KiB
Ruby

cask "freedom" do
version "2.19.2"
sha256 "b7d01dc06aff99ada9fa0ab5f1e94035e42f47ee04e97cb09b41e8c584f3b91e"
url "https://cdn.freedom.to/installers/updates/mac/#{version}/Freedom.zip"
name "Freedom"
desc "App and website blocker"
homepage "https://freedom.to/"
livecheck do
url "https://cdn.freedom.to/installers/updates/mac/Appcast.xml"
strategy :sparkle, &:short_version
end
auto_updates true
depends_on macos: ">= :big_sur"
app "Freedom.app"
uninstall quit: "com.80pct.FreedomPlatform",
launchctl: "com.80pct.FreedomHelper",
delete: [
"/Library/PrivilegedHelperTools/com.80pct.FreedomHelper",
"/var/log/FreedomHelper.log",
]
zap trash: [
"~/Library/Application Support/com.80pct.FreedomPlatform",
"~/Library/Caches/com.80pct.FreedomPlatform",
"~/Library/Caches/com.plausiblelabs.crashreporter.data/com.80pct.FreedomPlatform",
"~/Library/HTTPStorages/com.80pct.FreedomPlatform",
"~/Library/Preferences/com.80pct.FreedomPlatform.plist",
]
end