Skip to content

Commit 68958c2

Browse files
committed
Document -UseX64MakeAppx workaround
1 parent 01846cd commit 68958c2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

helpers.build.psm1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,10 @@ function Update-PathEnvironment {
12121212
function Find-MakeAppx {
12131213
[CmdletBinding()]
12141214
param(
1215+
# When packaging in OneBranch, the MSIX is created on an x64 image for
1216+
# the arm64 package, and our tooling expects to use the architecture
1217+
# passed, so we have to override it here. It may be possible to
1218+
# workaround this in another way, but deferring further investigation.
12151219
[switch]$UseX64MakeAppx
12161220
)
12171221

@@ -2166,14 +2170,13 @@ function Build-DscPackage {
21662170
ArtifactDirectory = $artifactDirectory
21672171
Architecture = $Architecture
21682172
Release = $Release
2169-
UseX64MakeAppx = $UseX64MakeAppx
21702173
}
21712174
}
21722175

21732176
process {
21742177
Write-Verbose "Packaging DSC..."
21752178
if ($packageType -match 'msix') {
2176-
Build-DscMsixPackage @buildParams -PackageType $packageType
2179+
Build-DscMsixPackage @buildParams -PackageType $packageType -UseX64MakeAppx:$UseX64MakeAppx
21772180
} elseif ($packageType -eq 'tgz') {
21782181
Build-DscTgzPackage @buildParams
21792182
} elseif ($packageType -eq 'zip') {

0 commit comments

Comments
 (0)