File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,23 @@ function CreateZips([string] $runtimeSuffix) {
218
218
# Project cleanup (trim some project files - this should be revisited)
219
219
cleanExtension " 32bit"
220
220
cleanExtension " 64bit"
221
+
222
+ # Create private extension for internal usage. To minimize size remove 64bit folder.
223
+ $tempPath = " $buildOutput \win-x32.inproc.temp\SiteExtensions"
224
+
225
+ # Make a temp location
226
+ New-Item - Itemtype directory - path $tempPath - ErrorAction SilentlyContinue
227
+
228
+ # Copy all files to temp folder
229
+ Copy-Item - Path $privateSiteExtensionPath - Destination $tempPath - Recurse
230
+
231
+ # Delete x64 folder to reduce size
232
+ Remove-Item " $tempPath \Functions\64bit" - Recurse
233
+
234
+ # Make the zip
235
+ ZipContent " $buildOutput \win-x32.inproc.temp" " $buildOutput \Functions.Private.$extensionVersion -alpha.win-x32.inproc.zip"
236
+
237
+ Remove-Item $tempPath - Recurse
221
238
}
222
239
223
240
# Zip up symbols for builds with runtime embedded
You can’t perform that action at this time.
0 commit comments