mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-09 05:11:59 +00:00
Compare commits
11 Commits
v9.1
...
Detect-spc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07efbb394f | ||
|
|
93844fdad9 | ||
|
|
27aa86b279 | ||
|
|
f0f4ff5747 | ||
|
|
579862274a | ||
|
|
72fdc2365e | ||
|
|
d78c6fdd5c | ||
|
|
7fcba4cb6e | ||
|
|
00ebfa35fd | ||
|
|
2d813bce80 | ||
|
|
69e4cdd216 |
@@ -1,3 +1,5 @@
|
||||
- if `spctl`-check is `rejected` then we now show an error that it can be due to Gatekeepr only allowing apps from App Store only. Installomator requires that all identified developers are accepted as well.
|
||||
|
||||
## v9.1
|
||||
|
||||
**Note**: Both Google and Mozilla recommend using the pkg installers instead of the dmg downloads for managed deployments. So far, Installomator has provided labels for both. (`googlechrome` and `googlechromepkg` or `firefox` and `firefoxpkg`, respectively) Since there are problems with the dmg downloads, a future release of Installomator will _disable_ the `firefox` and `googlechrome` dmg labels. You should switch to using the respective pkg labels instead.
|
||||
|
||||
@@ -80,6 +80,7 @@ LOGO=appstore
|
||||
# - mosyleb Mosyle Business
|
||||
# - mosylem Mosyle Manager (Education)
|
||||
# - addigy Addigy
|
||||
# - microsoft Microsoft Endpoint Manager (Intune)
|
||||
# path can also be set in the command call, and if file exists, it will be used.
|
||||
# Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"'
|
||||
# (spaces have to be escaped).
|
||||
@@ -4831,6 +4832,11 @@ case $LOGO in
|
||||
LOGO="/Library/Addigy/macmanage/MacManage.app/Contents/Resources/atom.icns"
|
||||
if [[ -z $MDMProfileName ]]; then; MDMProfileName="MDM Profile"; fi
|
||||
;;
|
||||
microsoft)
|
||||
# Microsoft Endpoint Manager (Intune)
|
||||
LOGO="/Library/Intune/Microsoft Intune Agent.app/Contents/Resources/AppIcon.icns"
|
||||
if [[ -z $MDMProfileName ]]; then; MDMProfileName="Management Profile"; fi
|
||||
;;
|
||||
esac
|
||||
if [[ ! -a "${LOGO}" ]]; then
|
||||
if [[ $(sw_vers -buildVersion) > "19" ]]; then
|
||||
|
||||
@@ -425,6 +425,13 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
||||
|
||||
if [[ $appVerifyStatus -ne 0 ]] ; then
|
||||
#if ! teamID=$(spctl -a -vv "$appPath" 2>&1 | awk '/origin=/ {print $NF }' | tr -d '()' ); then
|
||||
if [[ "$(echo $appVerify | head -1 | grep -oi rejected)" = "rejected" ]]; then
|
||||
if [[ "$(echo $appVerify | tail -1)" = "source=no usable signature" ]]; then
|
||||
printlog "Gatekeeper check rejected. No usable signature." ERROR
|
||||
else
|
||||
printlog "Gatekeeper check rejected. Could be that gatekeeper settings only accept App Store apps." ERROR
|
||||
fi
|
||||
fi
|
||||
cleanupAndExit 4 "Error verifying $appPath error:\n$logoutput" ERROR
|
||||
fi
|
||||
printlog "Debugging enabled, App Verification output was:\n$logoutput" DEBUG
|
||||
@@ -578,6 +585,13 @@ installFromPKG() {
|
||||
|
||||
if [[ $spctlStatus -ne 0 ]] ; then
|
||||
#if ! spctlout=$(spctl -a -vv -t install "$archiveName" 2>&1 ); then
|
||||
if [[ "$(echo $spctlOut | head -1 | grep -oi rejected)" = "rejected" ]]; then
|
||||
if [[ "$(echo $spctlOut | tail -1)" = "source=no usable signature" ]]; then
|
||||
printlog "Gatekeeper check rejected. No usable signature." ERROR
|
||||
else
|
||||
printlog "Gatekeeper check rejected. Could be that gatekeeper settings only accept App Store apps." ERROR
|
||||
fi
|
||||
fi
|
||||
cleanupAndExit 4 "Error verifying $archiveName error:\n$logoutput" ERROR
|
||||
fi
|
||||
|
||||
|
||||
@@ -80,6 +80,7 @@ LOGO=appstore
|
||||
# - mosyleb Mosyle Business
|
||||
# - mosylem Mosyle Manager (Education)
|
||||
# - addigy Addigy
|
||||
# - microsoft Microsoft Endpoint Manager (Intune)
|
||||
# path can also be set in the command call, and if file exists, it will be used.
|
||||
# Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"'
|
||||
# (spaces have to be escaped).
|
||||
|
||||
@@ -55,6 +55,11 @@ case $LOGO in
|
||||
LOGO="/Library/Addigy/macmanage/MacManage.app/Contents/Resources/atom.icns"
|
||||
if [[ -z $MDMProfileName ]]; then; MDMProfileName="MDM Profile"; fi
|
||||
;;
|
||||
microsoft)
|
||||
# Microsoft Endpoint Manager (Intune)
|
||||
LOGO="/Library/Intune/Microsoft Intune Agent.app/Contents/Resources/AppIcon.icns"
|
||||
if [[ -z $MDMProfileName ]]; then; MDMProfileName="Management Profile"; fi
|
||||
;;
|
||||
esac
|
||||
if [[ ! -a "${LOGO}" ]]; then
|
||||
if [[ $(sw_vers -buildVersion) > "19" ]]; then
|
||||
|
||||
@@ -1 +1 @@
|
||||
9.1
|
||||
10dev
|
||||
|
||||
Reference in New Issue
Block a user