cask "blockblock" do on_mojave :or_older do version "0.9.9.4" sha256 "6ab3a8224e8bc77b9abe8d41492c161454c6b0266e60e61b06931fed4b431282" url "https://bitbucket.org/objective-see/deploy/downloads/BlockBlock_#{version}.zip", verified: "bitbucket.org/objective-see/" installer script: { executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock", args: ["-install"], sudo: true, } uninstall script: { executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock", args: ["-uninstall"], sudo: true, } end on_catalina :or_newer do version "2.2.4" sha256 "6edd747e43148d7773adb6569b3f6fe085c82850bab6833850084ff2427b7bad" url "https://github.com/objective-see/BlockBlock/releases/download/v#{version}/BlockBlock_#{version}.zip", verified: "github.com/objective-see/BlockBlock/" end name "BlockBlock" desc "Monitors common persistence locations" homepage "https://objective-see.com/products/blockblock.html" installer script: { executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock Installer", args: ["-install"], sudo: true, } uninstall script: { executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock Installer", args: ["-uninstall"], sudo: true, } zap trash: [ "~/Library/Caches/com.objective-see.blockblock.helper", "~/Library/HTTPStorages/com.objective-see.blockblock.helper", "~/Library/Preferences/com.objective-see.blockblock.helper.plist", "~/Library/Preferences/com.objectiveSee.BlockBlock.plist", ] end