File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -248,8 +248,20 @@ function CreateZips([string] $runtimeSuffix) {
248
248
}
249
249
250
250
function deleteDuplicateWorkers () {
251
- Write-Host " Deleting workers directory: $privateSiteExtensionPath \32bit\workers"
252
- Remove-Item - Recurse - Force " $privateSiteExtensionPath \32bit\workers" - ErrorAction SilentlyContinue
251
+ if (Test-Path " $privateSiteExtensionPath \64bit\workers" ) {
252
+ Write-Host " Moving workers directory:$privateSiteExtensionPath \64bit\workers to" $privateSiteExtensionPath
253
+ Move-Item - Path " $privateSiteExtensionPath \64bit\workers" - Destination " $privateSiteExtensionPath \workers"
254
+
255
+ Write-Host " Silently removing $privateSiteExtensionPath \32bit\workers if exists"
256
+ Remove-Item - Recurse - Force " $privateSiteExtensionPath \32bit\workers" - ErrorAction SilentlyContinue
257
+ }
258
+ elseif (Test-Path " $privateSiteExtensionPath \32bit\workers" ) {
259
+ Write-Host " Moving workers directory:$privateSiteExtensionPath \32bit\workers to" $privateSiteExtensionPath
260
+ Move-Item - Path " $privateSiteExtensionPath \32bit\workers" - Destination " $privateSiteExtensionPath \workers"
261
+
262
+ Write-Host " Silently removing $privateSiteExtensionPath \64bit\workers if exists"
263
+ Remove-Item - Recurse - Force " $privateSiteExtensionPath \64bit\workers" - ErrorAction SilentlyContinue
264
+ }
253
265
}
254
266
255
267
function cleanExtension ([string ] $bitness ) {
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ $bypassPackaging = $true
4
4
$includeSuffix = $true
5
5
Write-Host " SourceBranch: $sourceBranch , Build reason: $buildReason "
6
6
7
- if ($sourceBranch.endsWith (' master' ) -and ($buildReason -ne " PullRequest" ))
7
+ if (( $sourceBranch.endsWith (' master' ) -or $sourceBranch .endsWith ( ' dev ' ) ) -and ($buildReason -ne " PullRequest" ))
8
8
{
9
- $includeSuffix = $false
9
+ if ($sourceBranch.endsWith (' master' )) {
10
+ $includeSuffix = $false
11
+ }
10
12
$bypassPackaging = $false
11
13
}
12
14
elseif ($buildReason -eq " PullRequest" )
You can’t perform that action at this time.
0 commit comments