mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-06 06:13:14 +01:00
Merge branch 'powershell' of https://github.com/kenchan0130/Installomator into onishi-prs
This commit is contained in:
109
Installomator.sh
109
Installomator.sh
@@ -45,7 +45,7 @@ BLOCKING_PROCESS_ACTION=prompt_user
|
|||||||
# - zip
|
# - zip
|
||||||
# - pkgInDmg
|
# - pkgInDmg
|
||||||
# - pkgInZip (not yet tested)
|
# - pkgInZip (not yet tested)
|
||||||
#
|
#
|
||||||
# - downloadURL: (required)
|
# - downloadURL: (required)
|
||||||
# URL to download the dmg.
|
# URL to download the dmg.
|
||||||
# Can be generated with a series of commands (see BBEdit for an example).
|
# Can be generated with a series of commands (see BBEdit for an example).
|
||||||
@@ -61,7 +61,7 @@ BLOCKING_PROCESS_ACTION=prompt_user
|
|||||||
# spctl -a -vv -t install ~/Downloads/desktoppr-0.2.pkg
|
# spctl -a -vv -t install ~/Downloads/desktoppr-0.2.pkg
|
||||||
#
|
#
|
||||||
# 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)
|
||||||
# The name of the downloaded file.
|
# The name of the downloaded file.
|
||||||
# When not given the archiveName is derived from the $name.
|
# When not given the archiveName is derived from the $name.
|
||||||
@@ -74,7 +74,7 @@ BLOCKING_PROCESS_ACTION=prompt_user
|
|||||||
# dmg or zip:
|
# dmg or zip:
|
||||||
# Applications will be copied to this directory.
|
# Applications will be copied to this directory.
|
||||||
# Default value is '/Applications' for dmg and zip installations.
|
# Default value is '/Applications' for dmg and zip installations.
|
||||||
# pkg:
|
# pkg:
|
||||||
# targetDir is used as the install-location. Default is '/'.
|
# targetDir is used as the install-location. Default is '/'.
|
||||||
#
|
#
|
||||||
# - blockingProcesses: (optional)
|
# - blockingProcesses: (optional)
|
||||||
@@ -85,7 +85,7 @@ BLOCKING_PROCESS_ACTION=prompt_user
|
|||||||
# blockingProcesses=( "Keynote" "Pages" "Numbers" )
|
# blockingProcesses=( "Keynote" "Pages" "Numbers" )
|
||||||
# When a workflow has no blocking processes, use
|
# When a workflow has no blocking processes, use
|
||||||
# blockingProcesses=( NONE )
|
# blockingProcesses=( NONE )
|
||||||
#
|
#
|
||||||
# - pkgName: (optional, only used for dmgInPkg and dmgInZip)
|
# - pkgName: (optional, only used for dmgInPkg and dmgInZip)
|
||||||
# File name of the pkg file _inside_ the dmg or zip
|
# File name of the pkg file _inside_ the dmg or zip
|
||||||
# When not given the pkgName is derived from the $name
|
# When not given the pkgName is derived from the $name
|
||||||
@@ -118,7 +118,7 @@ BLOCKING_PROCESS_ACTION=prompt_user
|
|||||||
downloadURLFromGit() { # $1 git user name, $2 git repo name
|
downloadURLFromGit() { # $1 git user name, $2 git repo name
|
||||||
gitusername=${1?:"no git user name"}
|
gitusername=${1?:"no git user name"}
|
||||||
gitreponame=${2?:"no git repo name"}
|
gitreponame=${2?:"no git repo name"}
|
||||||
|
|
||||||
if [ -n "$archiveName" ]; then
|
if [ -n "$archiveName" ]; then
|
||||||
downloadURL=$(curl --silent --fail "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" \
|
downloadURL=$(curl --silent --fail "https://api.github.com/repos/$gitusername/$gitreponame/releases/latest" \
|
||||||
| awk -F '"' "/browser_download_url/ && /$archiveName/ { print \$4 }")
|
| awk -F '"' "/browser_download_url/ && /$archiveName/ { print \$4 }")
|
||||||
@@ -166,7 +166,7 @@ case $label in
|
|||||||
echo "Installomater: version $VERSION ($VERSIONDATE)"
|
echo "Installomater: version $VERSION ($VERSIONDATE)"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# label descriptions start here
|
# label descriptions start here
|
||||||
autodmg)
|
autodmg)
|
||||||
# credit: Mischa van der Bent
|
# credit: Mischa van der Bent
|
||||||
@@ -296,7 +296,7 @@ case $label in
|
|||||||
| cut -d '"' -f 2 )
|
| cut -d '"' -f 2 )
|
||||||
expectedTeamID="UPXU4CQZ5P"
|
expectedTeamID="UPXU4CQZ5P"
|
||||||
;;
|
;;
|
||||||
boxdrive)
|
boxdrive)
|
||||||
# credit: Isaac Ordonez, Mann consulting
|
# credit: Isaac Ordonez, Mann consulting
|
||||||
name="Box"
|
name="Box"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
@@ -315,7 +315,7 @@ case $label in
|
|||||||
name="Zoom.us"
|
name="Zoom.us"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://zoom.us/client/latest/ZoomInstallerIT.pkg"
|
downloadURL="https://zoom.us/client/latest/ZoomInstallerIT.pkg"
|
||||||
expectedTeamID="BJ4HAAB9B3"
|
expectedTeamID="BJ4HAAB9B3"
|
||||||
blockingProcesses=( zoom.us )
|
blockingProcesses=( zoom.us )
|
||||||
;;
|
;;
|
||||||
sonos)
|
sonos)
|
||||||
@@ -399,34 +399,6 @@ case $label in
|
|||||||
type="zip"
|
type="zip"
|
||||||
downloadURL="https://www.fatcatsoftware.com/plisteditpro/PlistEditPro.zip"
|
downloadURL="https://www.fatcatsoftware.com/plisteditpro/PlistEditPro.zip"
|
||||||
expectedTeamID="8NQ43ND65V"
|
expectedTeamID="8NQ43ND65V"
|
||||||
;;
|
|
||||||
postman)
|
|
||||||
# credit: Mischa van der Bent
|
|
||||||
name="Postman"
|
|
||||||
type="zip"
|
|
||||||
downloadURL="https://dl.pstmn.io/download/latest/osx"
|
|
||||||
expectedTeamID="H7H8Q7M5CK"
|
|
||||||
;;
|
|
||||||
jamfpppcutility)
|
|
||||||
# credit: Mischa van der Bent
|
|
||||||
name="PPPC Utility"
|
|
||||||
type="zip"
|
|
||||||
downloadURL=$(downloadURLFromGit jamf PPPC-Utility)
|
|
||||||
expectedTeamID="483DWKW443"
|
|
||||||
;;
|
|
||||||
jamfmigrator)
|
|
||||||
# credit: Mischa van der Bent
|
|
||||||
name="jamf-migrator"
|
|
||||||
type="zip"
|
|
||||||
downloadURL=$(downloadURLFromGit jamf JamfMigrator)
|
|
||||||
expectedTeamID="PS2F6S478M"
|
|
||||||
;;
|
|
||||||
jamfreenroller)
|
|
||||||
# credit: Mischa van der Bent
|
|
||||||
name="ReEnroller"
|
|
||||||
type="zip"
|
|
||||||
downloadURL=$(downloadURLFromGit jamf ReEnroller)
|
|
||||||
expectedTeamID="PS2F6S478M"
|
|
||||||
;;
|
;;
|
||||||
slack)
|
slack)
|
||||||
name="Slack"
|
name="Slack"
|
||||||
@@ -516,7 +488,7 @@ case $label in
|
|||||||
downloadURL=$(curl -fs https://royaltsx-v4.royalapps.com/updates_stable | xpath '//rss/channel/item[1]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2)
|
downloadURL=$(curl -fs https://royaltsx-v4.royalapps.com/updates_stable | xpath '//rss/channel/item[1]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2)
|
||||||
expectedTeamID="VXP8K9EDP6"
|
expectedTeamID="VXP8K9EDP6"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
# Note: Packages is signed but _not_ notarized, so spctl will reject it
|
# Note: Packages is signed but _not_ notarized, so spctl will reject it
|
||||||
# packages)
|
# packages)
|
||||||
@@ -531,7 +503,7 @@ case $label in
|
|||||||
# 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
|
||||||
|
|
||||||
# download link IDs from: https://macadmin.software
|
# download link IDs from: https://macadmin.software
|
||||||
|
|
||||||
microsoftoffice365)
|
microsoftoffice365)
|
||||||
name="MicrosoftOffice365"
|
name="MicrosoftOffice365"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
@@ -542,7 +514,7 @@ case $label in
|
|||||||
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "OneDrive" )
|
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "OneDrive" )
|
||||||
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 )
|
updateToolArguments=( --install )
|
||||||
;;
|
;;
|
||||||
microsoftofficebusinesspro)
|
microsoftofficebusinesspro)
|
||||||
name="MicrosoftOfficeBusinessPro"
|
name="MicrosoftOfficeBusinessPro"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
@@ -553,7 +525,7 @@ case $label in
|
|||||||
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "OneDrive" "Teams")
|
blockingProcesses=( "Microsoft AutoUpdate" "Microsoft Word" "Microsoft PowerPoint" "Microsoft Excel" "Microsoft OneNote" "Microsoft Outlook" "OneDrive" "Teams")
|
||||||
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 )
|
updateToolArguments=( --install )
|
||||||
;;
|
;;
|
||||||
microsoftedgeconsumerstable)
|
microsoftedgeconsumerstable)
|
||||||
name="Microsoft Edge"
|
name="Microsoft Edge"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
@@ -562,7 +534,7 @@ case $label 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 EDGE01 )
|
updateToolArguments=( --install --apps EDGE01 )
|
||||||
;;
|
;;
|
||||||
microsoftcompanyportal)
|
microsoftcompanyportal)
|
||||||
name="Company Portal"
|
name="Company Portal"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=869655"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=869655"
|
||||||
@@ -570,7 +542,7 @@ case $label 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 IMCP01 )
|
updateToolArguments=( --install --apps IMCP01 )
|
||||||
;;
|
;;
|
||||||
microsoftskypeforbusiness)
|
microsoftskypeforbusiness)
|
||||||
name="Skype for Business"
|
name="Skype for Business"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=832978"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=832978"
|
||||||
@@ -578,7 +550,7 @@ case $label 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 MSFB16 )
|
updateToolArguments=( --install --apps MSFB16 )
|
||||||
;;
|
;;
|
||||||
microsoftremotedesktop)
|
microsoftremotedesktop)
|
||||||
name="Microsoft Remote Desktop"
|
name="Microsoft Remote Desktop"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=868963"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=868963"
|
||||||
@@ -586,7 +558,7 @@ case $label 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 MSRD10 )
|
updateToolArguments=( --install --apps MSRD10 )
|
||||||
;;
|
;;
|
||||||
microsoftteams)
|
microsoftteams)
|
||||||
name="Microsoft Teams"
|
name="Microsoft Teams"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
downloadURL="https://go.microsoft.com/fwlink/?linkid=869428"
|
downloadURL="https://go.microsoft.com/fwlink/?linkid=869428"
|
||||||
@@ -684,9 +656,14 @@ case $label 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 )
|
||||||
;;
|
;;
|
||||||
|
powershell)
|
||||||
|
name="PowerShell"
|
||||||
|
type="pkg"
|
||||||
|
downloadURL=$(downloadURLFromGit PowerShell PowerShell | grep lts)
|
||||||
|
expectedTeamID="UBF8T346G9"
|
||||||
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# these descriptions exist for testing and are intentionally broken
|
# these descriptions exist for testing and are intentionally broken
|
||||||
brokendownloadurl)
|
brokendownloadurl)
|
||||||
name="Google Chrome"
|
name="Google Chrome"
|
||||||
@@ -723,7 +700,7 @@ cleanupAndExit() { # $1 = exit code, $2 message
|
|||||||
echo "Deleting $tmpDir"
|
echo "Deleting $tmpDir"
|
||||||
rm -Rf "$tmpDir"
|
rm -Rf "$tmpDir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$dmgmount" ]; then
|
if [ -n "$dmgmount" ]; then
|
||||||
# unmount disk image
|
# unmount disk image
|
||||||
echo "Unmounting $dmgmount"
|
echo "Unmounting $dmgmount"
|
||||||
@@ -732,7 +709,7 @@ cleanupAndExit() { # $1 = exit code, $2 message
|
|||||||
exit "$1"
|
exit "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
runAsUser() {
|
runAsUser() {
|
||||||
if [[ $currentUser != "loginwindow" ]]; then
|
if [[ $currentUser != "loginwindow" ]]; then
|
||||||
uid=$(id -u "$currentUser")
|
uid=$(id -u "$currentUser")
|
||||||
launchctl asuser $uid sudo -u $currentUser "$@"
|
launchctl asuser $uid sudo -u $currentUser "$@"
|
||||||
@@ -748,7 +725,7 @@ displaynotification() { # $1: message $2: title
|
|||||||
message=${1:-"Message"}
|
message=${1:-"Message"}
|
||||||
title=${2:-"Notification"}
|
title=${2:-"Notification"}
|
||||||
manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
|
manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
|
||||||
|
|
||||||
if [[ -x "$manageaction" ]]; then
|
if [[ -x "$manageaction" ]]; then
|
||||||
"$manageaction" -message "$message" -title "$title"
|
"$manageaction" -message "$message" -title "$title"
|
||||||
else
|
else
|
||||||
@@ -782,14 +759,14 @@ checkRunningProcesses() {
|
|||||||
echo "DEBUG mode, not checking for blocking processes"
|
echo "DEBUG mode, not checking for blocking processes"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# try at most 3 times
|
# try at most 3 times
|
||||||
for i in {1..3}; do
|
for i in {1..3}; do
|
||||||
countedProcesses=0
|
countedProcesses=0
|
||||||
for x in ${blockingProcesses}; do
|
for x in ${blockingProcesses}; do
|
||||||
if pgrep -xq "$x"; then
|
if pgrep -xq "$x"; then
|
||||||
echo "found blocking process $x"
|
echo "found blocking process $x"
|
||||||
|
|
||||||
case $BLOCKING_PROCESS_ACTION in
|
case $BLOCKING_PROCESS_ACTION in
|
||||||
kill)
|
kill)
|
||||||
echo "killing process $x"
|
echo "killing process $x"
|
||||||
@@ -807,7 +784,7 @@ checkRunningProcesses() {
|
|||||||
cleanupAndExit 12 "blocking process '$x' found, aborting"
|
cleanupAndExit 12 "blocking process '$x' found, aborting"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
countedProcesses=$((countedProcesses + 1))
|
countedProcesses=$((countedProcesses + 1))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -831,7 +808,7 @@ checkRunningProcesses() {
|
|||||||
|
|
||||||
installAppWithPath() { # $1: path to app to install in $targetDir
|
installAppWithPath() { # $1: path to app to install in $targetDir
|
||||||
appPath=${1?:"no path to app"}
|
appPath=${1?:"no path to app"}
|
||||||
|
|
||||||
# check if app exists
|
# check if app exists
|
||||||
if [ ! -e "$appPath" ]; then
|
if [ ! -e "$appPath" ]; then
|
||||||
cleanupAndExit 8 "could not find: $appPath"
|
cleanupAndExit 8 "could not find: $appPath"
|
||||||
@@ -855,7 +832,7 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
|||||||
if [ "$DEBUG" -eq 0 ]; then
|
if [ "$DEBUG" -eq 0 ]; then
|
||||||
cleanupAndExit 6 "not running as root, exiting"
|
cleanupAndExit 6 "not running as root, exiting"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "DEBUG enabled, skipping copy and chown steps"
|
echo "DEBUG enabled, skipping copy and chown steps"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@@ -876,7 +853,7 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
|||||||
# set ownership to current user
|
# set ownership to current user
|
||||||
if [ "$currentUser" != "loginwindow" ]; then
|
if [ "$currentUser" != "loginwindow" ]; then
|
||||||
echo "Changing owner to $currentUser"
|
echo "Changing owner to $currentUser"
|
||||||
chown -R "$currentUser" "$targetDir/$appName"
|
chown -R "$currentUser" "$targetDir/$appName"
|
||||||
else
|
else
|
||||||
echo "No user logged in, not changing user"
|
echo "No user logged in, not changing user"
|
||||||
fi
|
fi
|
||||||
@@ -890,18 +867,18 @@ mountDMG() {
|
|||||||
if ! dmgmount=$(echo 'Y'$'\n' | hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
|
if ! dmgmount=$(echo 'Y'$'\n' | hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
|
||||||
cleanupAndExit 3 "Error mounting $tmpDir/$archiveName"
|
cleanupAndExit 3 "Error mounting $tmpDir/$archiveName"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -e $dmgmount ]]; then
|
if [[ ! -e $dmgmount ]]; then
|
||||||
echo "Error mounting $tmpDir/$archiveName"
|
echo "Error mounting $tmpDir/$archiveName"
|
||||||
cleanupAndExit 3
|
cleanupAndExit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Mounted: $dmgmount"
|
echo "Mounted: $dmgmount"
|
||||||
}
|
}
|
||||||
|
|
||||||
installFromDMG() {
|
installFromDMG() {
|
||||||
mountDMG
|
mountDMG
|
||||||
|
|
||||||
installAppWithPath "$dmgmount/$appName"
|
installAppWithPath "$dmgmount/$appName"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -919,18 +896,18 @@ installFromPKG() {
|
|||||||
echo "Team IDs do not match!"
|
echo "Team IDs do not match!"
|
||||||
cleanupAndExit 5
|
cleanupAndExit 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# skip install for DEBUG
|
# skip install for DEBUG
|
||||||
if [ "$DEBUG" -ne 0 ]; then
|
if [ "$DEBUG" -ne 0 ]; then
|
||||||
echo "DEBUG enabled, skipping installation"
|
echo "DEBUG enabled, skipping installation"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for root
|
# check for root
|
||||||
if [ "$(whoami)" != "root" ]; then
|
if [ "$(whoami)" != "root" ]; then
|
||||||
# not running as root
|
# not running as root
|
||||||
echo "not running as root, exiting"
|
echo "not running as root, exiting"
|
||||||
cleanupAndExit 6
|
cleanupAndExit 6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install pkg
|
# install pkg
|
||||||
@@ -945,7 +922,7 @@ installFromZIP() {
|
|||||||
# unzip the archive
|
# unzip the archive
|
||||||
echo "Unzipping $archiveName"
|
echo "Unzipping $archiveName"
|
||||||
tar -xf "$archiveName"
|
tar -xf "$archiveName"
|
||||||
|
|
||||||
installAppWithPath "$tmpDir/$appName"
|
installAppWithPath "$tmpDir/$appName"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -955,10 +932,10 @@ installPkgInDmg() {
|
|||||||
if [[ -z $pkgName ]]; then
|
if [[ -z $pkgName ]]; then
|
||||||
pkgName="$name.pkg"
|
pkgName="$name.pkg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# it is now safe to overwrite archiveName for installFromPKG
|
# it is now safe to overwrite archiveName for installFromPKG
|
||||||
archiveName="$dmgmount/$pkgName"
|
archiveName="$dmgmount/$pkgName"
|
||||||
|
|
||||||
# installFromPkgs
|
# installFromPkgs
|
||||||
installFromPKG
|
installFromPKG
|
||||||
}
|
}
|
||||||
@@ -972,10 +949,10 @@ installPkgInZip() {
|
|||||||
if [[ -z $pkgName ]]; then
|
if [[ -z $pkgName ]]; then
|
||||||
pkgName="$name.pkg"
|
pkgName="$name.pkg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# it is now safe to overwrite archiveName for installFromPKG
|
# it is now safe to overwrite archiveName for installFromPKG
|
||||||
archiveName="$tmpDir/$pkgName"
|
archiveName="$tmpDir/$pkgName"
|
||||||
|
|
||||||
# installFromPkgs
|
# installFromPkgs
|
||||||
installFromPKG
|
installFromPKG
|
||||||
}
|
}
|
||||||
@@ -1075,7 +1052,7 @@ if [[ -n $appVersion ]]; then
|
|||||||
else
|
else
|
||||||
echo "DEBUG mode enabled, not running update tool"
|
echo "DEBUG mode enabled, not running update tool"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# when user is logged in, and app is running, prompt user to quit app
|
# when user is logged in, and app is running, prompt user to quit app
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ omnigraffle7
|
|||||||
openvpnconnect
|
openvpnconnect
|
||||||
pacifist
|
pacifist
|
||||||
plisteditpro
|
plisteditpro
|
||||||
|
powershell
|
||||||
postman
|
postman
|
||||||
privileges
|
privileges
|
||||||
resiliosynchome
|
resiliosynchome
|
||||||
|
|||||||
Reference in New Issue
Block a user