From 3c2959fd957cbcc2ce8dc28b431ac7aef0cbb611 Mon Sep 17 00:00:00 2001 From: VenimK Date: Thu, 6 Feb 2025 05:31:24 +0100 Subject: [PATCH] Update pre137-generator-windows.yml --- .../workflows/pre137-generator-windows.yml | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pre137-generator-windows.yml b/.github/workflows/pre137-generator-windows.yml index a0c83ff..7ac28f1 100644 --- a/.github/workflows/pre137-generator-windows.yml +++ b/.github/workflows/pre137-generator-windows.yml @@ -502,16 +502,21 @@ jobs: continue-on-error: true shell: bash run: | - curl -X POST -F "file=@./rustdesk/unsigned_files.zip" \ - -H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \ - -m 900 \ - "${{ secrets.SIGN_URL }}/sign/" -o ./rustdesk/signed_files.zip + if [ ! -z "${{ secrets.SIGN_BASE_URL }}" ] && [ ! -z "${{ secrets.SIGN_API_KEY }}" ]; then + curl -X POST -F "file=@./rustdesk/unsigned_files.zip" \ + -H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \ + -m 900 \ + "${{ secrets.SIGN_BASE_URL }}/sign/" -o ./rustdesk/signed_files.zip + else + echo "Signing skipped - signing URL or API key not configured" + cp ./rustdesk/unsigned_files.zip ./rustdesk/signed_files.zip + fi - name: unzip dlls continue-on-error: true shell: pwsh run: | - Expand-Archive -Path ./rustdesk/signed_files.zip -DestinationPath ./rustdek/ -Force + Expand-Archive -Path ./rustdesk/signed_files.zip -DestinationPath ./rustdes k/ -Force - name: Create custom.txt file @@ -574,10 +579,15 @@ jobs: continue-on-error: true shell: bash run: | - curl -X POST -F "file=@./SignOutput/unsigned_files.zip" \ - -H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \ - -m 900 \ - "${{ secrets.SIGN_URL }}/sign/" -o ./SignOutput/signed_files.zip + if [ ! -z "${{ secrets.SIGN_BASE_URL }}" ] && [ ! -z "${{ secrets.SIGN_API_KEY }}" ]; then + curl -X POST -F "file=@./SignOutput/unsigned_files.zip" \ + -H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \ + -m 900 \ + "${{ secrets.SIGN_BASE_URL }}/sign/" -o ./SignOutput/signed_files.zip + else + echo "Signing skipped - signing URL or API key not configured" + cp ./SignOutput/unsigned_files.zip ./SignOutput/signed_files.zip + fi - name: unzip exe and msi continue-on-error: true