added sfsymbols, special handling for Apple signed apps without teamID

This commit is contained in:
Armin Briegel
2020-06-09 10:25:14 +02:00
parent 50d6df50d7
commit 9bd79fc3e6
2 changed files with 17 additions and 2 deletions

View File

@@ -665,7 +665,12 @@ powershell-lts)
expectedTeamID="M932RC5J66"
blockingProcesses=( "Glip" )
;;
sfsymbols)
name="SF Symbols"
type="pkgInDmg"
downloadURL="https://developer.apple.com/design/downloads/SF-Symbols.dmg"
expectedTeamID="Software Update"
;;
# Note: Packages is signed but _not_ notarized, so spctl will reject it
# packages)
@@ -1057,11 +1062,20 @@ installFromDMG() {
installFromPKG() {
# verify with spctl
printlog "Verifying: $archiveName"
if ! teamID=$(spctl -a -vv -t install "$archiveName" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ); then
if ! spctlout=$(spctl -a -vv -t install "$archiveName" 2>&1 ); then
printlog "Error verifying $archiveName"
cleanupAndExit 4
fi
teamID=$(echo $spctlout | awk -F '(' '/origin=/ {print $2 }' | tr -d '()' )
echo $teamID
# Apple signed software has no teamID, grab entire origin instead
if [[ -z $teamID ]]; then
teamID=$(echo $spctlout | awk -F '=' '/origin=/ {print $NF }')
fi
printlog "Team ID: $teamID (expected: $expectedTeamID )"
if [ "$expectedTeamID" != "$teamID" ]; then

View File

@@ -65,6 +65,7 @@ ringcentralapp
ringcentralmeetings
royaltsx
santa
sfsymbols
signal
slack
sonos