Skip to content

Commit b3dbd1f

Browse files
committed
MSIX build: show makeappx output on failure
1 parent cfd2a08 commit b3dbd1f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packaging/windows/build_msix.ps1‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Run "MEDHA.exe --selftest" { & dist\MEDHA\MEDHA.exe --selftest }
3232
Copy-Item -Recurse dist\MEDHA "$layout\MEDHA"
3333
(Get-Content packaging\windows\AppxManifest.xml -Raw).Replace("__VERSION__", $msixVer) | Set-Content "$layout\AppxManifest.xml" -Encoding utf8
3434
$makeappx = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin\*\x64\makeappx.exe" | Sort-Object FullName -Descending | Select-Object -First 1
35-
& $makeappx.FullName pack /d $layout /p "dist\MEDHA-$ver.msix" /o
36-
if ($LASTEXITCODE -ne 0) { throw "makeappx failed" }
35+
Run "makeappx pack" { & $makeappx.FullName pack /v /d $layout /p "dist\MEDHA-$ver.msix" /o }
3736
Compress-Archive -Path dist\MEDHA -DestinationPath "dist\MEDHA-$ver-portable.zip" -Force
3837
Get-ChildItem dist\*.msix, dist\*.zip | ForEach-Object { "{0} {1:N1} MB" -f $_.Name, ($_.Length / 1MB) }

0 commit comments

Comments
 (0)