From 2b99e71523791c5a147d472ae7b2055825ebe9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Fri, 15 Sep 2023 09:53:33 +0200 Subject: [PATCH] Uninstall Appx before installing it again Otherwise the installation fails because we often don't bump up the version --- tools/build/build-appx.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build/build-appx.ps1 b/tools/build/build-appx.ps1 index 33d166275..17b6941e8 100644 --- a/tools/build/build-appx.ps1 +++ b/tools/build/build-appx.ps1 @@ -62,6 +62,8 @@ function Update-Certificate { } function Install-Appx { + Get-AppxPackage -Name "CanonicalGroupLimited.UbuntuProForWindows" | Remove-AppxPackage + $artifacts = ( Get-ChildItem ".\msix\UbuntuProForWindows\AppPackages\UbuntuProForWindows_*" ` | Sort-Object LastWriteTime `