Skip to content

Commit

Permalink
MSIX: add debug configuration option for package building (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe authored Mar 12, 2020
1 parent 3e267bc commit 398b7a5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion installer/MSIX/build_msix.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
makeappx build /v /overwrite /f PackagingLayout.xml /id "PowerToys-x64" /op bin\
param (
[bool]$debug = 0
)

$PackagingLayoutFile = "PackagingLayout.xml"

if ($debug) {
(Get-Content $PackagingLayoutFile) `
-replace 'x64\\Release\\', 'x64\Debug\' `
| Out-File -Encoding utf8 "$env:temp\$PackagingLayoutFile"
$PackagingLayoutFile = "$env:temp\$PackagingLayoutFile"
}
makeappx build /v /overwrite /f $PackagingLayoutFile /id "PowerToys-x64" /op bin\

0 comments on commit 398b7a5

Please sign in to comment.