Testing wrt VMware Tools auto-start
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -29,16 +29,22 @@ ForEach ($Dependency in $AppxDependencies) {
|
||||
}
|
||||
Invoke-WebRequest @InvokeWebRequestSplat
|
||||
}
|
||||
# Download latest release from github
|
||||
# Download latest release (along with license) from github
|
||||
$InvokeRestMethodSplat = @{
|
||||
Uri = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
|
||||
Method = 'GET'
|
||||
}
|
||||
$LatestRelease = Invoke-RestMethod @InvokeRestMethodSplat
|
||||
$InvokeWebRequestSplat = @{
|
||||
Uri = ((Invoke-RestMethod @InvokeRestMethodSplat).assets | Where-Object {$_.name -like '*.msixbundle'}).browser_download_url
|
||||
Uri = ($LatestRelease.assets | Where-Object {$_.name -like '*.msixbundle'}).browser_download_url
|
||||
OutFile = "$env:temp\winget.msixbundle"
|
||||
}
|
||||
Invoke-WebRequest @InvokeWebRequestSplat
|
||||
$InvokeWebRequestSplat = @{
|
||||
Uri = ($LatestRelease.assets | Where-Object {$_.name -like '*license*.xml'}).browser_download_url
|
||||
OutFile = "$env:temp\wingetlicense.xml"
|
||||
}
|
||||
Invoke-WebRequest @InvokeWebRequestSplat
|
||||
|
||||
# Install dependencies
|
||||
$AppxDependencies.ShortName | ForEach-Object {
|
||||
|
Reference in New Issue
Block a user