homebrew-cask/Casks/blockblock.rb

46 lines
1.5 KiB
Ruby

cask "blockblock" do
if MacOS.version <= :mojave
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,
}
else
version "1.1.0"
sha256 "a5260a993c2f713f3f101b8728ad7b1636336c28f325f70cbc4445f6c0c1f420"
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 Installer",
args: ["-install"],
sudo: true,
}
uninstall script: {
executable: "#{staged_path}/BlockBlock Installer.app/Contents/MacOS/BlockBlock Installer",
args: ["-uninstall"],
sudo: true,
}
end
appcast "https://objective-see.com/products/changelogs/BlockBlock.txt"
name "BlockBlock"
homepage "https://objective-see.com/products/blockblock.html"
zap trash: "~/Library/Preferences/com.objectiveSee.BlockBlock.plist"
end