41 lines
1.6 KiB
Ruby
41 lines
1.6 KiB
Ruby
cask "malwarebytes" do
|
|
version "4.13.5.4414"
|
|
sha256 "2e6df9e98b2ad8f66d6e4428c0832ca7aa7b6013d4573e40424d6286507f9c66"
|
|
|
|
url "https://data-cdn.mbamupdates.com/web/mb#{version.major}_mac/Malwarebytes-Mac-#{version}.pkg",
|
|
verified: "data-cdn.mbamupdates.com/web/"
|
|
name "Malwarebytes for Mac"
|
|
desc "Warns about malware, adware and spyware"
|
|
homepage "https://www.malwarebytes.com/mac/"
|
|
|
|
livecheck do
|
|
url "https://downloads.malwarebytes.com/file/mb3-mac"
|
|
strategy :header_match
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :sierra"
|
|
|
|
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"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.malwarebytes.mbam.frontend.*",
|
|
"~/Library/Saved Application State/com.malwarebytes.mbam.frontend.application.savedState",
|
|
"~/Library/Preferences/com.malwarebytes.mbam.frontend.*",
|
|
"~/Library/Caches/com.crashlytics.data/com.malwarebytes.mbam.frontend.*",
|
|
"~/Library/Caches/com.malwarebytes.mbam.frontend.*",
|
|
"~/Library/Caches/io.fabric.sdk.mac.data/com.malwarebytes.mbam.frontend.*",
|
|
]
|
|
end
|