Rework WebApi.cs to use HttpClient (#1584)

* Rewrk webapi.cs to use HttpClient

* only run code signing when secrets are configured

* Workaround to check if secret is present or not

* apply it to all azure steps...

* dont replace cookie container, reuse managed object

* Fix adding MD5

---------

Co-authored-by: Natsumi <cmcooper123@hotmail.com>
This commit is contained in:
Luc ♥
2026-01-17 22:16:31 +01:00
committed by GitHub
parent 2d812d7c05
commit 56bf69f64e
6 changed files with 215 additions and 243 deletions

View File

@@ -51,13 +51,19 @@ jobs:
${{ runner.os }}-nuget-
- name: Build Cef .NET Application
run: dotnet build Dotnet/VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:PlatformTarget=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
- name: Check if we want to sign
id: check_sign
run: |
echo "sign=${{ secrets.AZURE_CLIENT_ID != '' }}" >> $GITHUB_OUTPUT
- name: Azure login
if: steps.check_sign.outputs.sign == 'true'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Sign Dotnet executables
if: steps.check_sign.outputs.sign == 'true'
uses: azure/trusted-signing-action@v0
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
@@ -103,6 +109,7 @@ jobs:
mv Installer/VRCX_Setup.exe $file_name
- name: Sign Cef setup
uses: azure/trusted-signing-action@v0
if: steps.check_sign.outputs.sign == 'true'
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}