Skip to content

Commit

Permalink
[pack] Adding in-proc package
Browse files Browse the repository at this point in the history
  • Loading branch information
alrod committed Sep 13, 2018
1 parent d80578a commit aca34e8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,23 @@ function CreateZips([string] $runtimeSuffix) {
# Project cleanup (trim some project files - this should be revisited)
cleanExtension "32bit"
cleanExtension "64bit"

# Create private extension for internal usage. To minimize size remove 64bit folder.
$tempPath = "$buildOutput\win-x32.inproc.temp\SiteExtensions"

# Make a temp location
New-Item -Itemtype directory -path $tempPath -ErrorAction SilentlyContinue

# Copy all files to temp folder
Copy-Item -Path $privateSiteExtensionPath -Destination $tempPath -Recurse

# Delete x64 folder to reduce size
Remove-Item "$tempPath\Functions\64bit" -Recurse

# Make the zip
ZipContent "$buildOutput\win-x32.inproc.temp" "$buildOutput\Functions.Private.$extensionVersion-alpha.win-x32.inproc.zip"

Remove-Item $tempPath -Recurse
}

# Zip up symbols for builds with runtime embedded
Expand Down

0 comments on commit aca34e8

Please sign in to comment.