Skip to content

Commit

Permalink
fix use of $architecture variable in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Oct 28, 2024
1 parent 0db783b commit 420150e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pipelines/DSC-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pr:
branches:
include:
- onebranch
- v3.*
- release/v*

schedules:
- cron: '0 3 * * 1'
Expand Down
10 changes: 6 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -661,13 +661,15 @@ if ($packageType -eq 'msixbundle') {
}

# for Linux, we only build musl as its statically linked, so we remove the musl suffix
if ($architecture -eq 'aarch64-unknown-linux-musl') {
$architecture = 'aarch64-linux'
$productArchitecture = if ($architecture -eq 'aarch64-unknown-linux-musl') {
'aarch64-linux'
} elseif ($architecture -eq 'x86_64-unknown-linux-musl') {
$architecture = 'x86_64-linux'
'x86_64-linux'
} else {
$architecture
}

$packageName = "DSC-$productVersion-$architecture.tar"
$packageName = "DSC-$productVersion-$productArchitecture.tar"
$tarFile = Join-Path $PSScriptRoot 'bin' $packageName
tar cvf $tarFile -C $tgzTarget .
if ($LASTEXITCODE -ne 0) {
Expand Down

0 comments on commit 420150e

Please sign in to comment.