@@ -502,16 +502,21 @@ jobs:
502
502
continue-on-error : true
503
503
shell : bash
504
504
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
509
514
510
515
- name : unzip dlls
511
516
continue-on-error : true
512
517
shell : pwsh
513
518
run : |
514
- Expand-Archive -Path ./rustdesk/signed_files.zip -DestinationPath ./rustdek / -Force
519
+ Expand-Archive -Path ./rustdesk/signed_files.zip -DestinationPath ./rustdes k / -Force
515
520
516
521
517
522
- name : Create custom.txt file
@@ -574,10 +579,15 @@ jobs:
574
579
continue-on-error : true
575
580
shell : bash
576
581
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
581
591
582
592
- name : unzip exe and msi
583
593
continue-on-error : true
0 commit comments