-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathXcode.munki.recipe
47 lines (47 loc) · 1.35 KB
/
Xcode.munki.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Identifier</key>
<string>com.grahamgilbert.munki.Xcode</string>
<key>Input</key>
<dict>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/Apple</string>
<key>NAME</key>
<string>Xcode</string>
<key>PATH</key>
<string>/Applications/%NAME%.app</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>display_name</key>
<string>%NAME%</string>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
<true/>
<key>category</key>
<string>Apple</string>
<key>postinstall_script</key>
<string>#!/bin/sh
# make sure all users on this machine are members of the _developer group
/usr/sbin/dseditgroup -o edit -a everyone -t group _developer
# enable developer mode
/usr/sbin/DevToolsSecurity -enable
# 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
</string>
</dict>
</dict>
<key>ParentRecipe</key>
<string>com.github.nmcspadden.pkg.munki.appstore</string>
</dict>
</plist>