homebrew-cask/Casks/malwarebytes.rb

26 lines
1.0 KiB
Ruby

cask 'malwarebytes' do
version '3.4.29.1587'
sha256 'b004f3d3d744a7980f9626da105298b0fb54d17c16e4d9248f5633d3f7a67a24'
# 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"
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