Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
xcode munki postinstall
<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
You can’t perform that action at this time.