Fix dependencies for package manager
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2021-06-22 13:44:06 +02:00
parent 51f6a7c7bd
commit 84d449dadb
1 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,12 @@ $InvokeWebRequestSplat = @{
}
Invoke-WebRequest @InvokeWebRequestSplat
$InvokeWebRequestSplat = @{
Uri = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"
Out = "$env:temp\vclibs.appx"
}
Invoke-WebRequest @InvokeWebRequestSplat
If (Test-Path -Path "$env:temp\winget.appxbundle") {
& dism.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"$env:temp\winget.appxbundle" /SkipLicense
& dism.exe /Online /Add-ProvisionedAppxPackage /PackagePath:"$env:temp\winget.appxbundle" /SkipLicense /DependencyPackagePath:"$env:temp\vclibs.appx"
}