From 2020c85cce670605b90acf714f30e864f7d8af68 Mon Sep 17 00:00:00 2001 From: VenimK Date: Thu, 6 Feb 2025 05:29:02 +0100 Subject: [PATCH] Update generator-windows.yml Check if signed .. no error on build --- .github/workflows/generator-windows.yml | 28 +++++++++++++++++-------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/generator-windows.yml b/.github/workflows/generator-windows.yml index 9293d1e..8d1ff8c 100644 --- a/.github/workflows/generator-windows.yml +++ b/.github/workflows/generator-windows.yml @@ -515,16 +515,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 ./rustdesk/ -Force - name: Create custom.txt file @@ -587,10 +592,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