Skip to content

Commit

Permalink
Fix local APPX build
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 18, 2023
1 parent aa6f761 commit 269f099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion end-to-end/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func buildProject(ctx context.Context) (debPath string, err error) {
}

jobs := map[string]*exec.Cmd{
"Build Windows Agent": powershellf(ctx, `..\tools\build\build-appx.ps1`),
"Build Windows Agent": powershellf(ctx, `..\tools\build\build-appx.ps1 -Mode end_to_end_tests`),
"Build Wsl Pro Service": powershellf(ctx, `..\tools\build\build-deb.ps1 -OutputDir %q`, debPath),
}

Expand Down
5 changes: 4 additions & 1 deletion tools/build/build-appx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ function Install-Appx {
| Sort-Object LastWriteTime `
| Select-Object -last 1 `
)


If ($mode -ne 'production') {
Add-AppxPackage "${env:ProgramFiles(x86)}\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0\Appx\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.Desktop.appx"
}
& "${artifacts}\Install.ps1" -Force

if ( "${LastExitCode}" -ne "0" ) {
Expand Down

0 comments on commit 269f099

Please sign in to comment.