Skip to content

Commit aca34e8

Browse files
committed
[pack] Adding in-proc package
1 parent d80578a commit aca34e8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,23 @@ function CreateZips([string] $runtimeSuffix) {
218218
# Project cleanup (trim some project files - this should be revisited)
219219
cleanExtension "32bit"
220220
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
221238
}
222239

223240
# Zip up symbols for builds with runtime embedded

0 commit comments

Comments
 (0)