mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-10 22:04:59 +01:00
lists all labels when no argument is given. Merges PR #52
This commit is contained in:
@@ -176,8 +176,9 @@ fi
|
|||||||
|
|
||||||
# get the label
|
# get the label
|
||||||
if [[ $# -eq 0 ]]; then
|
if [[ $# -eq 0 ]]; then
|
||||||
printlog "no label provided"
|
printlog "no label provided. Printing labels:"
|
||||||
exit 1
|
grep -E '^[a-z0-9]*\)$' "$0" | tr -d ')' | grep -v -E '^broken' | sort
|
||||||
|
exit 0
|
||||||
elif [[ $# -gt 3 ]]; then
|
elif [[ $# -gt 3 ]]; then
|
||||||
# jamf uses $4 for the first custom parameter
|
# jamf uses $4 for the first custom parameter
|
||||||
printlog "shifting arguments for Jamf"
|
printlog "shifting arguments for Jamf"
|
||||||
@@ -216,14 +217,16 @@ case $label in
|
|||||||
downloadURL=$(downloadURLFromGit MagerValp AutoDMG)
|
downloadURL=$(downloadURLFromGit MagerValp AutoDMG)
|
||||||
expectedTeamID="5KQ3D3FG5H"
|
expectedTeamID="5KQ3D3FG5H"
|
||||||
;;
|
;;
|
||||||
googlechrome|googlechromepkg)
|
googlechrome)
|
||||||
|
name="Google Chrome"
|
||||||
|
type="dmg"
|
||||||
|
downloadURL="https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
|
||||||
|
expectedTeamID="EQHXZ8M8AV"
|
||||||
|
;;
|
||||||
|
googlechromepkg)
|
||||||
name="Google Chrome"
|
name="Google Chrome"
|
||||||
type="pkg"
|
type="pkg"
|
||||||
#
|
downloadURL="https://dl.google.com/chrome/mac/stable/gcem/GoogleChrome.pkg"
|
||||||
# Note: this url acknowledges that you accept the terms of service
|
|
||||||
# https://support.google.com/chrome/a/answer/9915669
|
|
||||||
#
|
|
||||||
downloadURL="https://dl.google.com/chrome/mac/stable/accept_tos%3Dhttps%253A%252F%252Fwww.google.com%252Fintl%252Fen_ph%252Fchrome%252Fterms%252F%26_and_accept_tos%3Dhttps%253A%252F%252Fpolicies.google.com%252Fterms/googlechrome.pkg"
|
|
||||||
expectedTeamID="EQHXZ8M8AV"
|
expectedTeamID="EQHXZ8M8AV"
|
||||||
updateTool="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent"
|
updateTool="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent"
|
||||||
updateToolArguments=( -runMode oneshot -userInitiated YES )
|
updateToolArguments=( -runMode oneshot -userInitiated YES )
|
||||||
@@ -386,19 +389,11 @@ case $label in
|
|||||||
expectedTeamID="BJ4HAAB9B3"
|
expectedTeamID="BJ4HAAB9B3"
|
||||||
blockingProcesses=( zoom.us )
|
blockingProcesses=( zoom.us )
|
||||||
;;
|
;;
|
||||||
# for compatibility 'sonos' will download and install the S1 Controller
|
sonos)
|
||||||
# use 'sonoss2' for the new controller
|
|
||||||
sonos|sonoss1)
|
|
||||||
# credit: Erik Stam (@erikstam)
|
# credit: Erik Stam (@erikstam)
|
||||||
name="Sonos S1 Controller"
|
|
||||||
type="dmg"
|
|
||||||
downloadURL="https://www.sonos.com/redir/controller_software_mac"
|
|
||||||
expectedTeamID="2G4LW83Q3E"
|
|
||||||
;;
|
|
||||||
sonoss2)
|
|
||||||
name="Sonos"
|
name="Sonos"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
downloadURL="https://www.sonos.com/redir/controller_software_mac2"
|
downloadURL="https://www.sonos.com/redir/controller_software_mac"
|
||||||
expectedTeamID="2G4LW83Q3E"
|
expectedTeamID="2G4LW83Q3E"
|
||||||
;;
|
;;
|
||||||
coderunner)
|
coderunner)
|
||||||
@@ -497,7 +492,7 @@ case $label in
|
|||||||
expectedTeamID="VEKTX9H2N7"
|
expectedTeamID="VEKTX9H2N7"
|
||||||
;;
|
;;
|
||||||
things)
|
things)
|
||||||
name="Things3"
|
name="Things"
|
||||||
type="zip"
|
type="zip"
|
||||||
downloadURL="https://culturedcode.com/things/download/"
|
downloadURL="https://culturedcode.com/things/download/"
|
||||||
expectedTeamID="JLMPQHK86H"
|
expectedTeamID="JLMPQHK86H"
|
||||||
@@ -607,17 +602,10 @@ case $label in
|
|||||||
downloadURL=$(downloadURLFromGit jamf ReEnroller)
|
downloadURL=$(downloadURLFromGit jamf ReEnroller)
|
||||||
expectedTeamID="PS2F6S478M"
|
expectedTeamID="PS2F6S478M"
|
||||||
;;
|
;;
|
||||||
adobereaderdc|adobereaderdc-install)
|
adobereaderdc)
|
||||||
name="Adobe Acrobat Reader DC"
|
name="Adobe Acrobat Reader DC"
|
||||||
type="pkgInDmg"
|
type="pkgInDmg"
|
||||||
downloadURL=$(curl -H "Sec-Fetch-Site: same-origin" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-US;q=0.9,en;q=0.8" -H "DNT: 1" -H "Sec-Fetch-Mode: cors" -H "X-Requested-With: XMLHttpRequest" -H "Referer: https://get.adobe.com/reader/enterprise/" -H "Accept: */*" "https://get.adobe.com/reader/webservices/json/standalone/?platform_type=Macintosh&platform_dist=OSX&platform_arch=x86-32&language=English&eventname=readerotherversions" | grep -Eo '"download_url":.*?[^\\]",' | head -n 1 | cut -d \" -f 4)
|
downloadURL=$(adobecurrent=`curl -s https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/current_version.txt | tr -d '.'` && echo http://ardownload.adobe.com/pub/adobe/reader/mac/AcrobatDC/"$adobecurrent"/AcroRdrDC_"$adobecurrent"_MUI.dmg)
|
||||||
expectedTeamID="JQ525L2MZD"
|
|
||||||
blockingProcesses=( "AdobeReader" )
|
|
||||||
;;
|
|
||||||
adobereaderdc-update)
|
|
||||||
name="Adobe Acrobat Reader DC"
|
|
||||||
type="pkgInDmg"
|
|
||||||
downloadURL=$(adobecurrent=`curl -s https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/current_version.txt | tr -d '.'` && echo http://ardownload.adobe.com/pub/adobe/reader/mac/AcrobatDC/"$adobecurrent"/AcroRdrDCUpd"$adobecurrent"_MUI.dmg)
|
|
||||||
expectedTeamID="JQ525L2MZD"
|
expectedTeamID="JQ525L2MZD"
|
||||||
blockingProcesses=( "AdobeReader" )
|
blockingProcesses=( "AdobeReader" )
|
||||||
;;
|
;;
|
||||||
@@ -700,13 +688,6 @@ case $label in
|
|||||||
downloadURL="https://updates.cdn-apple.com/2019/cert/061-41823-20191025-5efc5a59-d7dc-46d3-9096-396bb8cb4a73/SwiftRuntimeForCommandLineTools.dmg"
|
downloadURL="https://updates.cdn-apple.com/2019/cert/061-41823-20191025-5efc5a59-d7dc-46d3-9096-396bb8cb4a73/SwiftRuntimeForCommandLineTools.dmg"
|
||||||
expectedTeamID="Software Update"
|
expectedTeamID="Software Update"
|
||||||
;;
|
;;
|
||||||
vmwarefusion)
|
|
||||||
# credit: Erik Stam (@erikstam)
|
|
||||||
name="VMware Fusion"
|
|
||||||
type="dmg"
|
|
||||||
downloadURL="https://www.vmware.com/go/getfusion"
|
|
||||||
expectedTeamID="EG7KH642X6"
|
|
||||||
;;
|
|
||||||
|
|
||||||
|
|
||||||
# Note: Packages is signed but _not_ notarized, so spctl will reject it
|
# Note: Packages is signed but _not_ notarized, so spctl will reject it
|
||||||
|
|||||||
Reference in New Issue
Block a user