Skip to content

Commit dc965aa

Browse files
authored
Merge pull request #28 from VenimK/patch-11
Update pre137-generator-windows.yml
2 parents 8e11af7 + 3c2959f commit dc965aa

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/pre137-generator-windows.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -502,16 +502,21 @@ jobs:
502502
continue-on-error: true
503503
shell: bash
504504
run: |
505-
curl -X POST -F "file=@./rustdesk/unsigned_files.zip" \
506-
-H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \
507-
-m 900 \
508-
"${{ secrets.SIGN_URL }}/sign/" -o ./rustdesk/signed_files.zip
505+
if [ ! -z "${{ secrets.SIGN_BASE_URL }}" ] && [ ! -z "${{ secrets.SIGN_API_KEY }}" ]; then
506+
curl -X POST -F "file=@./rustdesk/unsigned_files.zip" \
507+
-H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \
508+
-m 900 \
509+
"${{ secrets.SIGN_BASE_URL }}/sign/" -o ./rustdesk/signed_files.zip
510+
else
511+
echo "Signing skipped - signing URL or API key not configured"
512+
cp ./rustdesk/unsigned_files.zip ./rustdesk/signed_files.zip
513+
fi
509514
510515
- name: unzip dlls
511516
continue-on-error: true
512517
shell: pwsh
513518
run: |
514-
Expand-Archive -Path ./rustdesk/signed_files.zip -DestinationPath ./rustdek/ -Force
519+
Expand-Archive -Path ./rustdesk/signed_files.zip -DestinationPath ./rustdes k/ -Force
515520
516521
517522
- name: Create custom.txt file
@@ -574,10 +579,15 @@ jobs:
574579
continue-on-error: true
575580
shell: bash
576581
run: |
577-
curl -X POST -F "file=@./SignOutput/unsigned_files.zip" \
578-
-H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \
579-
-m 900 \
580-
"${{ secrets.SIGN_URL }}/sign/" -o ./SignOutput/signed_files.zip
582+
if [ ! -z "${{ secrets.SIGN_BASE_URL }}" ] && [ ! -z "${{ secrets.SIGN_API_KEY }}" ]; then
583+
curl -X POST -F "file=@./SignOutput/unsigned_files.zip" \
584+
-H "X-API-KEY: ${{ secrets.SIGN_API_KEY }}" \
585+
-m 900 \
586+
"${{ secrets.SIGN_BASE_URL }}/sign/" -o ./SignOutput/signed_files.zip
587+
else
588+
echo "Signing skipped - signing URL or API key not configured"
589+
cp ./SignOutput/unsigned_files.zip ./SignOutput/signed_files.zip
590+
fi
581591
582592
- name: unzip exe and msi
583593
continue-on-error: true

0 commit comments

Comments
 (0)