diff options
-rw-r--r-- | .github/workflows/winget-bucket-update.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/winget-bucket-update.yml b/.github/workflows/winget-bucket-update.yml index 95bdc0b14..a5c07cdf5 100644 --- a/.github/workflows/winget-bucket-update.yml +++ b/.github/workflows/winget-bucket-update.yml | |||
@@ -15,12 +15,27 @@ jobs: | |||
15 | name: "Manual winget update: ${{ github.event.inputs.message }}" | 15 | name: "Manual winget update: ${{ github.event.inputs.message }}" |
16 | if: ${{ github.event_name == 'workflow_dispatch' }} | 16 | if: ${{ github.event_name == 'workflow_dispatch' }} |
17 | steps: | 17 | steps: |
18 | - name: "Install winget" | ||
19 | # cf https://github.com/actions/virtual-environments/issues/910#issuecomment-1009640391 | ||
20 | # TODO: update urls to get more updated version | ||
21 | run: | | ||
22 | $ErrorActionPreference = 'Stop' | ||
23 | |||
24 | iwr $(iwr 'https://store.rg-adguard.net/api/GetFiles' -Method 'POST' -ContentType 'application/x-www-form-urlencoded' -Body 'type=PackageFamilyName&url=Microsoft.VCLibs.140.00_8wekyb3d8bbwe&ring=RP&lang=en-US' -UseBasicParsing | Foreach-Object Links | Where-Object outerHTML -match 'Microsoft.VCLibs.140.00_.+_x64__8wekyb3d8bbwe.appx' | Foreach-Object href) -OutFile $env:TEMP\vclibs.appx | ||
25 | iwr $(iwr 'https://store.rg-adguard.net/api/GetFiles' -Method 'POST' -ContentType 'application/x-www-form-urlencoded' -Body 'type=PackageFamilyName&url=Microsoft.VCLibs.140.00.UWPDesktop_8wekyb3d8bbwe&ring=RP&lang=en-US' -UseBasicParsing | Foreach-Object Links | Where-Object outerHTML -match 'Microsoft.VCLibs.140.00.UWPDesktop_.+_x64__8wekyb3d8bbwe.appx' | Foreach-Object href) -OutFile $env:TEMP\vclibsuwp.appx | ||
26 | iwr 'https://github.com/microsoft/winget-cli/releases/download/v1.1.12653/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' -OutFile $env:TEMP\winget.msixbundle | ||
27 | iwr 'https://github.com/microsoft/winget-cli/releases/download/v1.1.12653/9c0fe2ce7f8e410eb4a8f417de74517e_License1.xml' -Outfile $env:TEMP\winget.license | ||
28 | |||
29 | Add-AppxProvisionedPackage -Online -PackagePath $env:TEMP\winget.msixbundle -LicensePath $env:TEMP\winget.license -DependencyPackagePath @("$env:TEMP\vclibs.appx", "$env:TEMP\vclibsuwp.appx") | ||
30 | - name: "Verify winget" | ||
31 | run: | | ||
32 | winget --info | ||
18 | - name: "Get release tag" | 33 | - name: "Get release tag" |
19 | run: | | 34 | run: | |
20 | if ("${{ contains(github.event.inputs.message, '[nightly]') }}") { | 35 | if ("${{ contains(github.event.inputs.message, '[nightly]') }}") { |
21 | $preRel = $True | 36 | $preRel = $True |
22 | $tagInc = "nightly" | 37 | $tagInc = "nightly" |
23 | $package = "Ferdium.Ferdium.Nightly" | 38 | $package = "Ferdium.Ferdium" # change to Nighlty |
24 | } | 39 | } |
25 | elseif ("${{ contains(github.event.inputs.message, '[beta]') }}") { | 40 | elseif ("${{ contains(github.event.inputs.message, '[beta]') }}") { |
26 | $preRel = $True | 41 | $preRel = $True |