File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 4848 steps :
4949 - name : Checkout repository
5050 uses : actions/checkout@v4
51+ - name : Install WinGet
52+ run : |
53+ $progressPreference = 'silentlyContinue'
54+ $latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object {$_.EndsWith(".msixbundle")}
55+ $latestWingetMsixBundle = $latestWingetMsixBundleUri.Split("/")[-1]
56+ Write-Information "Downloading winget to artifacts directory..."
57+ Invoke-WebRequest -Uri $latestWingetMsixBundleUri -OutFile "./$latestWingetMsixBundle"
58+ Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
59+ Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
60+ Add-AppxPackage $latestWingetMsixBundle
5161 - name : Create test script
5262 run : |
5363 mkdir $env:TEMP\test-script
You can’t perform that action at this time.
0 commit comments