homebrew-cask/Casks/malwarebytes.rb

27 lines
1.2 KiB
Ruby

cask 'malwarebytes' do
version '3.7.34.2263'
sha256 '30eb239aaa59ec5c9769fdd1f35da751a1f6071b1b6eb77dbbaacbb136dfb075'
# data-cdn.mbamupdates.com/web was verified as official when first introduced to the cask
url "https://data-cdn.mbamupdates.com/web/mb#{version.major}_mac/Malwarebytes-Mac-#{version}.pkg"
appcast 'https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://downloads.malwarebytes.com/file/mb3-mac'
name 'Malwarebytes for Mac'
homepage 'https://www.malwarebytes.com/mac/'
auto_updates true
depends_on macos: '>= :yosemite'
pkg "Malwarebytes-Mac-#{version}.pkg"
uninstall delete: '/Library/Application Support/Malwarebytes/MBAM',
kext: 'com.malwarebytes.mbam.rtprotection',
launchctl: [
'com.malwarebytes.mbam.frontend.agent',
'com.malwarebytes.mbam.rtprotection.daemon',
'com.malwarebytes.mbam.settings.daemon',
],
pkgutil: 'com.malwarebytes.mbam',
quit: 'com.malwarebytes.mbam.frontend.agent',
rmdir: '/Library/Application Support/Malwarebytes'
end