mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-02 22:04:27 +01:00
first implementation with webex meetings
This commit is contained in:
@@ -431,6 +431,12 @@ case $identifier in
|
|||||||
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
updateTool="/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate"
|
||||||
updateToolArguments=( --install --apps WDAV00 )
|
updateToolArguments=( --install --apps WDAV00 )
|
||||||
;;
|
;;
|
||||||
|
webexmeetings)
|
||||||
|
name="Cisco Webex Meetings"
|
||||||
|
type="pkgInDmg"
|
||||||
|
downloadURL="https://akamaicdn.webex.com/client/webexapp.dmg"
|
||||||
|
expectedTeamID="DE8Y96K9QP"
|
||||||
|
;;
|
||||||
|
|
||||||
# msupdate codes from:
|
# msupdate codes from:
|
||||||
# https://docs.microsoft.com/en-us/deployoffice/mac/update-office-for-mac-using-msupdate
|
# https://docs.microsoft.com/en-us/deployoffice/mac/update-office-for-mac-using-msupdate
|
||||||
@@ -596,7 +602,7 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
installFromDMG() {
|
mountDMG() {
|
||||||
# mount the dmg
|
# mount the dmg
|
||||||
echo "Mounting $tmpDir/$archiveName"
|
echo "Mounting $tmpDir/$archiveName"
|
||||||
# always pipe 'Y\n' in case the dmg requires an agreement
|
# always pipe 'Y\n' in case the dmg requires an agreement
|
||||||
@@ -610,6 +616,10 @@ installFromDMG() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Mounted: $dmgmount"
|
echo "Mounted: $dmgmount"
|
||||||
|
}
|
||||||
|
|
||||||
|
installFromDMG() {
|
||||||
|
mountDMG
|
||||||
|
|
||||||
installAppWithPath "$dmgmount/$appName"
|
installAppWithPath "$dmgmount/$appName"
|
||||||
}
|
}
|
||||||
@@ -658,6 +668,20 @@ installFromZIP() {
|
|||||||
installAppWithPath "$tmpDir/$appName"
|
installAppWithPath "$tmpDir/$appName"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installPkgInDmg() {
|
||||||
|
mountDMG
|
||||||
|
# locate pkg in dmg
|
||||||
|
if [[ -z $pkgName ]]; then
|
||||||
|
pkgName="$name.pkg"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# it is now safe to overwrite archiveName for installFromPKG
|
||||||
|
archiveName="$dmgmount/$pkgName"
|
||||||
|
|
||||||
|
# installFromPkgs
|
||||||
|
installFromPKG
|
||||||
|
}
|
||||||
|
|
||||||
runUpdateTool() {
|
runUpdateTool() {
|
||||||
if [[ -x $updateTool ]]; then
|
if [[ -x $updateTool ]]; then
|
||||||
echo "running $updateTool $updateToolArguments"
|
echo "running $updateTool $updateToolArguments"
|
||||||
@@ -805,6 +829,9 @@ case $type in
|
|||||||
zip|tbz)
|
zip|tbz)
|
||||||
installFromZIP
|
installFromZIP
|
||||||
;;
|
;;
|
||||||
|
pkgInDmg)
|
||||||
|
installPkgInDmg
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Cannot handle type $type"
|
echo "Cannot handle type $type"
|
||||||
cleanupAndExit 99
|
cleanupAndExit 99
|
||||||
|
|||||||
Reference in New Issue
Block a user