35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
cask "freedom" do
|
|
version "2.18.2"
|
|
sha256 "2201ff7d3fcd49ad6425faf9e28b06717e90d9e6ad7891ede12ad83780cf5b5b"
|
|
|
|
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: ">= :catalina"
|
|
|
|
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
|