added malwarebytes

This commit is contained in:
Armin Briegel
2020-03-10 13:05:20 +01:00
parent 344c2ff58d
commit 7f6ba5aad6

View File

@@ -27,8 +27,12 @@ fi
# 10-digit developer team ID # 10-digit developer team ID
# obtain this by running # obtain this by running
# #
# Applications (in dmgs or zips)
# spctl -a -vv /Applications/BBEdit.app # spctl -a -vv /Applications/BBEdit.app
# #
# Pkgs
# spctl -a -vv -t install /Applications/BBEdit.app
#
# the team ID is the ten-digit ID at the end of the line starting with 'origin=' # the team ID is the ten-digit ID at the end of the line starting with 'origin='
# #
# - archiveName: (optional) # - archiveName: (optional)
@@ -49,6 +53,7 @@ fi
# TODO: add pkg support # TODO: add pkg support
# TODO: add zip support # TODO: add zip support
# TODO: handle pkgs in dmg or zip
# TODO: check for running processes and either abort or prompt user # TODO: check for running processes and either abort or prompt user
# TODO: log version of installed software # TODO: log version of installed software
# TODO: notification when done # TODO: notification when done
@@ -101,6 +106,11 @@ case $identifier in
downloadURL=$(downloadURLFromGit "scriptingosx" "desktoppr") downloadURL=$(downloadURLFromGit "scriptingosx" "desktoppr")
expectedTeamID="JME5BW3F3R" expectedTeamID="JME5BW3F3R"
;; ;;
Malwarebytes)
downloadURL="https://downloads.malwarebytes.com/file/mb3-mac"
archiveName="Malwarebytes.pkg"
expectedTeamID="GVZRY6KDKR"
;;
MicrosoftOffice365) MicrosoftOffice365)
downloadURL="https://go.microsoft.com/fwlink/?linkid=525133" downloadURL="https://go.microsoft.com/fwlink/?linkid=525133"
archiveName="MSOffice365.pkg" archiveName="MSOffice365.pkg"
@@ -189,8 +199,6 @@ cleanupAndExit() { # $1 = exit code
# remove the temporary working directory when done # remove the temporary working directory when done
echo "Deleting $tmpDir" echo "Deleting $tmpDir"
rm -Rf "$tmpDir" rm -Rf "$tmpDir"
else
open "$tmpDir"
fi fi
if [ -n "$dmgmount" ]; then if [ -n "$dmgmount" ]; then