cask "freedom" do version "2.24.0" sha256 "89806e4437c3180428ad640821e6bebd0e4be78f3ee983fa7799c78563a27d18" 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 no_autobump! because: :requires_manual_review 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