cask "freedom" do version "2.23.0" sha256 "e5dd9501fda4f2f57a8e2b17044ad4ced24e52bc57d67e964ae9bd6a8a917176" 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 launchctl: "com.80pct.FreedomHelper", quit: "com.80pct.FreedomPlatform", 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