Skip to content

Commit 420150e

Browse files
committed
fix use of $architecture variable in build script
1 parent 0db783b commit 420150e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.pipelines/DSC-Official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pr:
55
branches:
66
include:
77
- onebranch
8-
- v3.*
8+
- release/v*
99

1010
schedules:
1111
- cron: '0 3 * * 1'

build.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,13 +661,15 @@ if ($packageType -eq 'msixbundle') {
661661
}
662662

663663
# for Linux, we only build musl as its statically linked, so we remove the musl suffix
664-
if ($architecture -eq 'aarch64-unknown-linux-musl') {
665-
$architecture = 'aarch64-linux'
664+
$productArchitecture = if ($architecture -eq 'aarch64-unknown-linux-musl') {
665+
'aarch64-linux'
666666
} elseif ($architecture -eq 'x86_64-unknown-linux-musl') {
667-
$architecture = 'x86_64-linux'
667+
'x86_64-linux'
668+
} else {
669+
$architecture
668670
}
669671

670-
$packageName = "DSC-$productVersion-$architecture.tar"
672+
$packageName = "DSC-$productVersion-$productArchitecture.tar"
671673
$tarFile = Join-Path $PSScriptRoot 'bin' $packageName
672674
tar cvf $tarFile -C $tgzTarget .
673675
if ($LASTEXITCODE -ne 0) {

0 commit comments

Comments
 (0)