From 3060e2502da734f530690baf82421accaaf201f9 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Sat, 21 Dec 2024 03:27:51 +0100 Subject: [PATCH] Install winget --- .github/workflows/steam.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/steam.yaml b/.github/workflows/steam.yaml index 516077c..35c3325 100644 --- a/.github/workflows/steam.yaml +++ b/.github/workflows/steam.yaml @@ -7,10 +7,21 @@ jobs: runs-on: windows-2022 steps: - name: Install winget - uses: Cyberboss/install-winget@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - wget_release_id: latest + run: | + $WinGetVer='1.8.1911' + $WinGetLicenseFile='76fba573f02545629706ab99170237bc_License1.xml' + + # https://stackoverflow.com/questions/28682642/powershell-why-is-using-invoke-webrequest-much-slower-than-a-browser-download# + $ProgressPreference = 'SilentlyContinue' + + # Download and install Microsoft.UI.Xaml + Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile $env:TEMP\Microsoft.UI.Xaml.appx + Add-AppxPackage -Path $env:TEMP\Microsoft.UI.Xaml.appx + + # Download and install Microsoft.DesktopAppInstaller.WinGet + Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/download/v$WinGetVer/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -OutFile $env:TEMP\Microsoft.DesktopAppInstaller.WinGet.appx + Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/download/v$WinGetVer/$WinGetLicenseFile" -OutFile $env:TEMP\license.xml + Add-AppxProvisionedPackage -Online -PackagePath $env:TEMP\Microsoft.DesktopAppInstaller.WinGet.appx -LicensePath $env:TEMP\license.xml - name: Install run: |