xcode munki postinstall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>postinstall_script</key> | |
<string>#!/bin/sh | |
# enable developer mode | |
/usr/sbin/DevToolsSecurity -enable | |
# make sure all users on this machine are members of the _developer group | |
/usr/sbin/dseditgroup -o edit -t group -a everyone _developer | |
# accept Xcode license | |
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept | |
# install embedded packages | |
for PKG in `/bin/ls /Applications/Xcode.app/Contents/Resources/Packages/*.pkg` ; do | |
/usr/sbin/installer -pkg "$PKG" -target / | |
done | |
exit 0 | |
</string> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment