This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
/
AdoptOpenJDK8.pkg.recipe
129 lines (129 loc) · 3.23 KB
/
AdoptOpenJDK8.pkg.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?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>Description</key>
<string>Downloads the current release version of AdoptOpenJDK 8 and builds a package. This is based from the tar version rather than the signed pkg version, so that the true version number can be obtained.</string>
<key>Identifier</key>
<string>com.github.grahampugh.recipes.pkg.AdoptOpenJDK8</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>AdoptOpenJDK 8</string>
</dict>
<key>MinimumVersion</key>
<string>1.0.0</string>
<key>ParentRecipe</key>
<string>com.github.grahampugh.recipes.download.AdoptOpenJDK8</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>pkgdirs</key>
<dict>
<key>Library</key>
<string>0755</string>
<key>Library/Java</key>
<string>0755</string>
<key>Library/Java/JavaVirtualMachines</key>
<string>0755</string>
</dict>
<key>pkgroot</key>
<string>%RECIPE_CACHE_DIR%/pkgroot</string>
</dict>
<key>Processor</key>
<string>PkgRootCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>destination_path</key>
<string>%pkgroot%/Library/Java/JavaVirtualMachines</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>Unarchiver</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pattern</key>
<string>%pkgroot%/Library/Java/JavaVirtualMachines/jdk8*/Contents/Info.plist</string>
</dict>
<key>Processor</key>
<string>FileFinder</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%found_filename%</string>
<key>plist_version_key</key>
<string>CFBundleVersion</string>
</dict>
<key>Processor</key>
<string>Versioner</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_request</key>
<dict>
<key>chown</key>
<array>
<dict>
<key>group</key>
<string>wheel</string>
<key>path</key>
<string>Library</string>
<key>user</key>
<string>root</string>
</dict>
<dict>
<key>group</key>
<string>wheel</string>
<key>path</key>
<string>Library/Java</string>
<key>user</key>
<string>root</string>
</dict>
<dict>
<key>group</key>
<string>wheel</string>
<key>path</key>
<string>Library/Java/JavaVirtualMachines</string>
<key>user</key>
<string>root</string>
</dict>
</array>
<key>id</key>
<string>com.AdoptOpenJDK-8.jdk</string>
<key>options</key>
<string>purge_ds_store</string>
<key>pkgname</key>
<string>AdoptOpenJDK8-%version%</string>
<key>version</key>
<string>%version%</string>
</dict>
</dict>
<key>Processor</key>
<string>PkgCreator</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>path_list</key>
<array>
<string>%RECIPE_CACHE_DIR%/pkgroot</string>
</array>
</dict>
<key>Processor</key>
<string>PathDeleter</string>
</dict>
</array>
</dict>
</plist>