@@ -295,9 +295,51 @@ jobs:
295295 set PATH=C:\Qt\5.15.2\msvc2019_64\bin;%PATH%
296296 nmake check TESTARGS="-maxwarnings 100000"
297297
298+ - name : Upload executables for signing
299+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
300+ uses : actions/upload-artifact@v4
301+ id : upload_executables
302+ with :
303+ name : windows-x64-executables-unsigned-${{ needs.initialization.outputs.build_number }}
304+ path : |
305+ release64/YACReader.exe
306+ release64/YACReaderLibrary.exe
307+ release64/YACReaderLibraryServer.exe
308+
309+ - name : Sign executables with SignPath
310+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
311+ uses : signpath/github-action-submit-signing-request@v1
312+ with :
313+ api-token : ${{ secrets.SIGNPATH_API_TOKEN }}
314+ organization-id : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
315+ project-slug : ' yacreader'
316+ signing-policy-slug : ' release-signing'
317+ artifact-configuration-slug : ' zipped-files'
318+ github-artifact-id : ${{ steps.upload_executables.outputs.artifact-id }}
319+ wait-for-completion : true
320+ wait-for-completion-timeout-in-seconds : " 3600"
321+ output-artifact-directory : release64/signed
322+
323+ - name : Replace with signed executables
324+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
325+ shell : pwsh
326+ run : |
327+ Write-Host "=== Replacing executables with signed versions ==="
328+ Get-ChildItem -Path "release64/signed" -Filter "*.exe" | ForEach-Object {
329+ $destPath = "release64/$($_.Name)"
330+ Write-Host "Moving signed: $($_.Name) -> $destPath"
331+ Move-Item -Path $_.FullName -Destination $destPath -Force
332+ Write-Host " Moved successfully"
333+ }
334+ Remove-Item -Path "release64/signed" -Recurse -Force -ErrorAction SilentlyContinue
335+ Write-Host "Signed executables are ready for installer creation"
336+
298337 - name : Create installer
299338 shell : cmd
300339 working-directory : ci/win
340+ env :
341+ SIGNPATH_API_TOKEN : ${{ secrets.SIGNPATH_API_TOKEN }}
342+ SIGNPATH_ORGANIZATION_ID : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
301343 run : |
302344 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
303345 set PATH=C:\Qt\5.15.2\msvc2019_64\bin;%PATH%
@@ -328,9 +370,10 @@ jobs:
328370 organization-id : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
329371 project-slug : ' yacreader'
330372 signing-policy-slug : ' release-signing'
331- artifact-configuration-slug : ' windows-installer '
373+ artifact-configuration-slug : ' zipped-files '
332374 github-artifact-id : ${{ steps.upload_unsigned.outputs.artifact-id }}
333375 wait-for-completion : true
376+ wait-for-completion-timeout-in-seconds : " 3600"
334377 output-artifact-directory : ci/win/Output/signed
335378
336379 - name : Replace with signed installer
@@ -421,9 +464,51 @@ jobs:
421464 set PATH=C:\Qt\6.3.1\msvc2019_64\bin;%PATH%
422465 nmake check TESTARGS="-maxwarnings 100000"
423466
467+ - name : Upload executables for signing
468+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
469+ uses : actions/upload-artifact@v4
470+ id : upload_executables
471+ with :
472+ name : windows-x64-qt6-executables-unsigned-${{ needs.initialization.outputs.build_number }}
473+ path : |
474+ release64/YACReader.exe
475+ release64/YACReaderLibrary.exe
476+ release64/YACReaderLibraryServer.exe
477+
478+ - name : Sign executables with SignPath
479+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
480+ uses : signpath/github-action-submit-signing-request@v1
481+ with :
482+ api-token : ${{ secrets.SIGNPATH_API_TOKEN }}
483+ organization-id : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
484+ project-slug : ' yacreader'
485+ signing-policy-slug : ' release-signing'
486+ artifact-configuration-slug : ' zipped-files'
487+ github-artifact-id : ${{ steps.upload_executables.outputs.artifact-id }}
488+ wait-for-completion : true
489+ wait-for-completion-timeout-in-seconds : " 3600"
490+ output-artifact-directory : release64/signed
491+
492+ - name : Replace with signed executables
493+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
494+ shell : pwsh
495+ run : |
496+ Write-Host "=== Replacing executables with signed versions ==="
497+ Get-ChildItem -Path "release64/signed" -Filter "*.exe" | ForEach-Object {
498+ $destPath = "release64/$($_.Name)"
499+ Write-Host "Moving signed: $($_.Name) -> $destPath"
500+ Move-Item -Path $_.FullName -Destination $destPath -Force
501+ Write-Host " Moved successfully"
502+ }
503+ Remove-Item -Path "release64/signed" -Recurse -Force -ErrorAction SilentlyContinue
504+ Write-Host "Signed executables are ready for installer creation"
505+
424506 - name : Create installer
425507 shell : cmd
426508 working-directory : ci/win
509+ env :
510+ SIGNPATH_API_TOKEN : ${{ secrets.SIGNPATH_API_TOKEN }}
511+ SIGNPATH_ORGANIZATION_ID : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
427512 run : |
428513 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.29
429514 set PATH=C:\Qt\6.3.1\msvc2019_64\bin;%PATH%
@@ -454,9 +539,10 @@ jobs:
454539 organization-id : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
455540 project-slug : ' yacreader'
456541 signing-policy-slug : ' release-signing'
457- artifact-configuration-slug : ' windows-installer-qt6 '
542+ artifact-configuration-slug : ' zipped-files '
458543 github-artifact-id : ${{ steps.upload_unsigned.outputs.artifact-id }}
459544 wait-for-completion : true
545+ wait-for-completion-timeout-in-seconds : " 3600"
460546 output-artifact-directory : ci/win/Output/signed
461547
462548 - name : Replace with signed installer
@@ -531,9 +617,51 @@ jobs:
531617 set PATH=C:\Qt\5.15.2\msvc2019\bin;%PATH%
532618 nmake check TESTARGS="-maxwarnings 100000"
533619
620+ - name : Upload executables for signing
621+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
622+ uses : actions/upload-artifact@v4
623+ id : upload_executables
624+ with :
625+ name : windows-x86-executables-unsigned-${{ needs.initialization.outputs.build_number }}
626+ path : |
627+ release/YACReader.exe
628+ release/YACReaderLibrary.exe
629+ release/YACReaderLibraryServer.exe
630+
631+ - name : Sign executables with SignPath
632+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
633+ uses : signpath/github-action-submit-signing-request@v1
634+ with :
635+ api-token : ${{ secrets.SIGNPATH_API_TOKEN }}
636+ organization-id : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
637+ project-slug : ' yacreader'
638+ signing-policy-slug : ' release-signing'
639+ artifact-configuration-slug : ' zipped-files'
640+ github-artifact-id : ${{ steps.upload_executables.outputs.artifact-id }}
641+ wait-for-completion : true
642+ wait-for-completion-timeout-in-seconds : " 3600"
643+ output-artifact-directory : release/signed
644+
645+ - name : Replace with signed executables
646+ if : github.repository == 'YACReader/yacreader' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
647+ shell : pwsh
648+ run : |
649+ Write-Host "=== Replacing executables with signed versions ==="
650+ Get-ChildItem -Path "release/signed" -Filter "*.exe" | ForEach-Object {
651+ $destPath = "release/$($_.Name)"
652+ Write-Host "Moving signed: $($_.Name) -> $destPath"
653+ Move-Item -Path $_.FullName -Destination $destPath -Force
654+ Write-Host " Moved successfully"
655+ }
656+ Remove-Item -Path "release/signed" -Recurse -Force -ErrorAction SilentlyContinue
657+ Write-Host "Signed executables are ready for installer creation"
658+
534659 - name : Create installer
535660 shell : cmd
536661 working-directory : ci/win
662+ env :
663+ SIGNPATH_API_TOKEN : ${{ secrets.SIGNPATH_API_TOKEN }}
664+ SIGNPATH_ORGANIZATION_ID : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
537665 run : |
538666 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
539667 set PATH=C:\Qt\5.15.2\msvc2019\bin;%PATH%
@@ -564,9 +692,10 @@ jobs:
564692 organization-id : ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
565693 project-slug : ' yacreader'
566694 signing-policy-slug : ' release-signing'
567- artifact-configuration-slug : ' windows-installer-x86 '
695+ artifact-configuration-slug : ' zipped-files '
568696 github-artifact-id : ${{ steps.upload_unsigned.outputs.artifact-id }}
569697 wait-for-completion : true
698+ wait-for-completion-timeout-in-seconds : " 3600"
570699 output-artifact-directory : ci/win/Output/signed
571700
572701 - name : Replace with signed installer
0 commit comments