added adobereaderdc

This commit is contained in:
Armin Briegel
2020-05-18 20:38:04 +02:00
parent 27e54e8ddd
commit 4f396b5191
2 changed files with 11 additions and 4 deletions

View File

@@ -554,7 +554,13 @@ case $label in
downloadURL=$(downloadURLFromGit jamf ReEnroller) downloadURL=$(downloadURLFromGit jamf ReEnroller)
expectedTeamID="PS2F6S478M" expectedTeamID="PS2F6S478M"
;; ;;
adobereaderdc)
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"/AcroRdrDC_"$adobecurrent"_MUI.dmg)
expectedTeamID="JQ525L2MZD"
blockingProcesses=( "AdobeReader" )
;;
# Note: Packages is signed but _not_ notarized, so spctl will reject it # Note: Packages is signed but _not_ notarized, so spctl will reject it
@@ -991,8 +997,8 @@ installPkgInDmg() {
mountDMG mountDMG
# locate pkg in dmg # locate pkg in dmg
if [[ -z $pkgName ]]; then if [[ -z $pkgName ]]; then
# find a file starting with $name and ending with 'pkg' # find first file ending with 'pkg'
findfiles=$(find -X "$dmgmount" -iname "${name}*.pkg" -maxdepth 1 ) findfiles=$(find -X "$dmgmount" -iname "*.pkg" -maxdepth 1 )
filearray=( ${(0)findfiles} ) filearray=( ${(0)findfiles} )
if [[ ${#filearray} -eq 0 ]]; then if [[ ${#filearray} -eq 0 ]]; then
cleanupAndExit 20 "couldn't find pkg in dmg $archiveName" cleanupAndExit 20 "couldn't find pkg in dmg $archiveName"
@@ -1015,7 +1021,7 @@ installPkgInZip() {
# locate pkg in zip # locate pkg in zip
if [[ -z $pkgName ]]; then if [[ -z $pkgName ]]; then
# find a file starting with $name and ending with 'pkg' # find first file starting with $name and ending with 'pkg'
findfiles=$(find -X "$tmpDir" -iname "${name}*.pkg" -maxdepth 1 ) findfiles=$(find -X "$tmpDir" -iname "${name}*.pkg" -maxdepth 1 )
filearray=( ${(0)findfiles} ) filearray=( ${(0)findfiles} )
if [[ ${#filearray} -eq 0 ]]; then if [[ ${#filearray} -eq 0 ]]; then

View File

@@ -1,4 +1,5 @@
1password7 1password7
adobereaderdc
appclener appclener
atom atom
autodmg autodmg