Skip to content

Commit 20a4ca4

Browse files
Adds Application «Microsoft Office for Mac»
1 parent 976d922 commit 20a4ca4

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

Applications/MicrosoftOffice.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppMicrosoftOffice(){
4+
# --> Set Download URL
5+
# Source: https://learn.microsoft.com/en-us/deployoffice/mac/deployment-options-for-office-for-mac
6+
local downloadUrl="https://go.microsoft.com/fwlink/p/?linkid=2009112"
7+
# --> Download
8+
downloadFromUrl "$downloadUrl" "MSOfficeForMac.pkg"
9+
# --> Launch Package Installer
10+
installer -pkg "$HOME/Downloads/MSOfficeForMac.pkg" -target /
11+
}
12+
export -f installAppMicrosoftOffice

config.default.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ installDiscord=false
8181
installFig=false
8282
installFirefox=false
8383
installGoogleChrome=false
84+
installMicrosoftOffice=false
8485
installPixelmator=false
8586
installSpotify=false
8687
installStrongbox=false

run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,12 @@ if [ "$installVisualStudioCode" = true ]; then
404404
installAppVSCode
405405
showinfo "" "confirm"
406406
fi
407+
# -- Microsoft Office / Office 365 for Mac --
408+
if [ "$installMicrosoftOffice" = true ]; then
409+
showinfo "Installing Microsoft Office for Mac:" "note"
410+
installAppMicrosoftOffice
411+
showinfo "" "confirm"
412+
fi
407413
# -- Xcode Command Line Tools --
408414
if [ "$installXcodeTools" = true ] || [ "$installHomebrew" = true ]; then
409415
# !! NOTE: Pre-requisite for Homebrew !!

0 commit comments

Comments
 (0)