@@ -189,15 +189,11 @@ function CreateZips([string] $runtimeSuffix) {
189
189
190
190
ZipContent $privateSiteExtensionPath " $buildOutput \Functions.Binaries.$extensionVersion -alpha$runtimeSuffix .zip"
191
191
192
- # Project cleanup (trim some project files - this should be revisited)
193
- Remove-Item - Recurse - Force " $privateSiteExtensionPath \publish" - ErrorAction SilentlyContinue
194
- Remove-Item - Recurse - Force " $privateSiteExtensionPath \runtimes\linux" - ErrorAction SilentlyContinue
195
- Remove-Item - Recurse - Force " $privateSiteExtensionPath \runtimes\osx" - ErrorAction SilentlyContinue
196
-
197
- # Create site extension packages
198
-
199
- # Prepare private "no-runtime" with custom xdt
200
192
if ($runtimeSuffix -eq " .no-runtime" ) {
193
+ # Project cleanup (trim some project files - this should be revisited)
194
+ cleanExtension " "
195
+
196
+ # Prepare private "no-runtime" with custom xdt
201
197
$currentXdtPath = " $privateSiteExtensionPath \applicationHost.xdt"
202
198
$tempXdtDir = " $buildOutput \xdt-temp"
203
199
$tempPublicXdtPath = " $tempXdtDir \applicationHost-public.xdt"
@@ -218,6 +214,10 @@ function CreateZips([string] $runtimeSuffix) {
218
214
Move-Item $tempPublicXdtPath $currentXdtPath - Force
219
215
220
216
Remove-Item $tempXdtDir - Recurse
217
+ } else {
218
+ # Project cleanup (trim some project files - this should be revisited)
219
+ cleanExtension " 32bit"
220
+ cleanExtension " 64bit"
221
221
}
222
222
223
223
# Zip up symbols for builds with runtime embedded
@@ -234,6 +234,19 @@ function CreateZips([string] $runtimeSuffix) {
234
234
235
235
}
236
236
237
+ function cleanExtension ([string ] $bitness ) {
238
+ Remove-Item - Recurse - Force " $privateSiteExtensionPath \$bitness \publish" - ErrorAction SilentlyContinue
239
+ Remove-Item - Recurse - Force " $privateSiteExtensionPath \$bitness \runtimes\linux" - ErrorAction SilentlyContinue
240
+ Remove-Item - Recurse - Force " $privateSiteExtensionPath \$bitness \runtimes\osx" - ErrorAction SilentlyContinue
241
+
242
+ Get-ChildItem " $privateSiteExtensionPath \$bitness \workers\node\grpc\src\node\extension_binary" |
243
+ Foreach-Object {
244
+ if (-Not ($_.FullName -Match " win32" )) {
245
+ Remove-Item - Recurse - Force $_.FullName
246
+ }
247
+ }
248
+ }
249
+
237
250
dotnet -- version
238
251
dotnet build .\WebJobs.Script.sln - v q / p:BuildNumber= " $buildNumber "
239
252
0 commit comments