Skip to content

Commit 7dd5378

Browse files
authored
Merge pull request #287 from paul-cossey/master
Update CitrixWorkspace.munki.recipe
2 parents 381d8cf + 9822c7c commit 7dd5378

File tree

1 file changed

+39
-74
lines changed

1 file changed

+39
-74
lines changed

CitrixReceiver/CitrixWorkspace.munki.recipe

+39-74
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
<plist version="1.0">
44
<dict>
55
<key>Description</key>
6-
<string>Downloads the current release version of Citrix Workspace and imports into Munki.</string>
6+
<string>Downloads the current release version of Citrix Workspace and imports into Munki.
7+
8+
Set the DERIVE_MIN_OS variable to a non-empty string to set the minimum_os_version via MunkiInstallsItemsCreator. This requires a minimum AutoPkg version of 2.7 please update if you're not already running it.</string>
79
<key>Identifier</key>
810
<string>io.github.hjuutilainen.munki.CitrixWorkspace</string>
911
<key>Input</key>
1012
<dict>
13+
<key>DERIVE_MIN_OS</key>
14+
<string>YES</string>
1115
<key>NAME</key>
1216
<string>CitrixWorkspace</string>
1317
<key>MUNKI_REPO_SUBDIR</key>
@@ -41,7 +45,7 @@
4145
</dict>
4246
</dict>
4347
<key>MinimumVersion</key>
44-
<string>0.2.0</string>
48+
<string>2.7</string>
4549
<key>ParentRecipe</key>
4650
<string>io.github.hjuutilainen.download.CitrixWorkspace</string>
4751
<key>Process</key>
@@ -68,37 +72,39 @@
6872
<key>Processor</key>
6973
<string>PkgPayloadUnpacker</string>
7074
</dict>
71-
<dict>
72-
<key>Arguments</key>
73-
<dict>
74-
<key>flat_pkg_path</key>
75-
<string>%RECIPE_CACHE_DIR%/payload/Library/Application Support/CitrixPackage/com.citrix.apps.cwa.pkg</string>
76-
<key>destination_path</key>
77-
<string>%RECIPE_CACHE_DIR%/payload2</string>
78-
</dict>
79-
<key>Processor</key>
80-
<string>FlatPkgUnpacker</string>
81-
</dict>
82-
<dict>
83-
<key>Arguments</key>
84-
<dict>
85-
<key>pkg_payload_path</key>
86-
<string>%RECIPE_CACHE_DIR%/payload2/com.citrix.ICAClientcwa.pkg/Payload</string>
87-
<key>destination_path</key>
88-
<string>%RECIPE_CACHE_DIR%/payload3</string>
89-
</dict>
90-
<key>Processor</key>
91-
<string>PkgPayloadUnpacker</string>
92-
</dict>
75+
<dict>
76+
<key>Arguments</key>
77+
<dict>
78+
<key>flat_pkg_path</key>
79+
<string>%RECIPE_CACHE_DIR%/payload/Library/Application Support/CitrixPackage/com.citrix.apps.cwa.pkg</string>
80+
<key>destination_path</key>
81+
<string>%RECIPE_CACHE_DIR%/payload2</string>
82+
</dict>
83+
<key>Processor</key>
84+
<string>FlatPkgUnpacker</string>
85+
</dict>
86+
<dict>
87+
<key>Arguments</key>
88+
<dict>
89+
<key>pkg_payload_path</key>
90+
<string>%RECIPE_CACHE_DIR%/payload2/com.citrix.ICAClientcwa.pkg/Payload</string>
91+
<key>destination_path</key>
92+
<string>%RECIPE_CACHE_DIR%/payload3</string>
93+
</dict>
94+
<key>Processor</key>
95+
<string>PkgPayloadUnpacker</string>
96+
</dict>
9397
<dict>
9498
<key>Arguments</key>
9599
<dict>
96100
<key>faux_root</key>
97-
<string>%RECIPE_CACHE_DIR%/payload</string>
101+
<string>%RECIPE_CACHE_DIR%/payload3</string>
98102
<key>installs_item_paths</key>
99103
<array>
100104
<string>/Applications/Citrix Workspace.app</string>
101105
</array>
106+
<key>derive_minimum_os_version</key>
107+
<string>%DERIVE_MIN_OS%</string>
102108
</dict>
103109
<key>Processor</key>
104110
<string>MunkiInstallsItemsCreator</string>
@@ -110,45 +116,17 @@
110116
<string>MunkiPkginfoMerger</string>
111117
</dict>
112118
<dict>
113-
<key>Arguments</key>
114-
<dict>
115-
<key>info_path</key>
116-
<string>%RECIPE_CACHE_DIR%/payload3/Applications/Citrix Workspace.app/Contents/Info.plist</string>
117-
<key>plist_keys</key>
118-
<dict>
119-
<key>CFBundleShortVersionString</key>
120-
<string>version</string>
121-
<key>LSMinimumSystemVersion</key>
122-
<string>minimum_os_version</string>
123-
</dict>
124-
</dict>
125119
<key>Processor</key>
126-
<string>PlistReader</string>
127-
</dict>
128-
<dict>
120+
<string>MunkiImporter</string>
129121
<key>Arguments</key>
130122
<dict>
131-
<key>additional_pkginfo</key>
132-
<dict>
133-
<key>minimum_os_version</key>
134-
<string>%minimum_os_version%</string>
135-
<key>installs</key>
136-
<array>
137-
<dict>
138-
<key>CFBundleShortVersionString</key>
139-
<string>%version%</string>
140-
<key>path</key>
141-
<string>/Applications/Citrix Workspace.app</string>
142-
<key>type</key>
143-
<string>application</string>
144-
<key>version_comparison_key</key>
145-
<string>CFBundleShortVersionString</string>
146-
</dict>
147-
</array>
148-
</dict>
123+
<key>munkiimport_pkgname</key>
124+
<string>Install Citrix Workspace.pkg</string>
125+
<key>pkg_path</key>
126+
<string>%pathname%</string>
127+
<key>repo_subdirectory</key>
128+
<string>%MUNKI_REPO_SUBDIR%</string>
149129
</dict>
150-
<key>Processor</key>
151-
<string>MunkiPkginfoMerger</string>
152130
</dict>
153131
<dict>
154132
<key>Arguments</key>
@@ -158,25 +136,12 @@
158136
<string>%RECIPE_CACHE_DIR%/unpack</string>
159137
<string>%RECIPE_CACHE_DIR%/payload</string>
160138
<string>%RECIPE_CACHE_DIR%/payload2</string>
161-
<string>%RECIPE_CACHE_DIR%/payload3</string>
139+
<string>%RECIPE_CACHE_DIR%/payload3/</string>
162140
</array>
163141
</dict>
164142
<key>Processor</key>
165143
<string>PathDeleter</string>
166144
</dict>
167-
<dict>
168-
<key>Processor</key>
169-
<string>MunkiImporter</string>
170-
<key>Arguments</key>
171-
<dict>
172-
<key>munkiimport_pkgname</key>
173-
<string>Install Citrix Workspace.pkg</string>
174-
<key>pkg_path</key>
175-
<string>%pathname%</string>
176-
<key>repo_subdirectory</key>
177-
<string>%MUNKI_REPO_SUBDIR%</string>
178-
</dict>
179-
</dict>
180145
</array>
181146
</dict>
182147
</plist>

0 commit comments

Comments
 (0)