Skip to content

Commit 123813c

Browse files
authored
[pack]Fix build script to clean site extension (#5727)
1 parent 1103bab commit 123813c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function CreateZips([string] $runtimeSuffix) {
187187
# Project cleanup (trim some project files - this should be revisited)
188188
cleanExtension ""
189189

190-
190+
deleteDuplicateWorkers
191191

192192
# Make the zip
193193
ZipContent $publishTarget "$buildOutput\Functions.Private.$extensionVersion$runtimeSuffix.zip"
@@ -197,6 +197,8 @@ function CreateZips([string] $runtimeSuffix) {
197197
cleanExtension "32bit"
198198
cleanExtension "64bit"
199199

200+
deleteDuplicateWorkers
201+
200202
# Create private extension for internal usage. To minimize size remove 64bit folder.
201203
$tempPath = "$buildOutput\win-x32.inproc.temp\SiteExtensions"
202204

@@ -252,7 +254,6 @@ function cleanExtension([string] $bitness) {
252254
$keepRuntimes = @('win', 'win-x86', 'win10-x86', 'win-x64', 'win10-x64')
253255
Get-ChildItem "$privateSiteExtensionPath\$bitness\workers\powershell\runtimes" -Exclude $keepRuntimes -ErrorAction SilentlyContinue |
254256
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
255-
deleteDuplicateWorkers
256257
}
257258

258259
dotnet --version

0 commit comments

Comments
 (0)