File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1212,6 +1212,10 @@ function Update-PathEnvironment {
12121212function 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' ) {
You can’t perform that action at this time.
0 commit comments