Adjust package manager install to new release format
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2021-06-25 15:08:03 +02:00
parent de5546f776
commit 6a18b5bf22
1 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ $InvokeRestMethodSplat = @{
Method = 'GET'
}
$InvokeWebRequestSplat = @{
Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object {$_.name -like '*.appxbundle'}).browser_download_url
OutFile = "$env:temp\winget.appxbundle"
Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object {$_.name -like '*.msixbundle'}).browser_download_url
OutFile = "$env:temp\winget.msixbundle"
}
Invoke-WebRequest @InvokeWebRequestSplat
@ -49,7 +49,7 @@ $AppxDependencies.ShortName | ForEach-Object {
}
# Install winget
$AddAppxPackageSplat = @{
Path = "$env:temp\winget.appxbundle"
Path = "$env:temp\winget.msixbundle"
}
Add-AppxPackage @AddAppxPackageSplat