adjust drone to handle new windows cert and sign more dlls
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2022-06-23 16:29:08 -07:00
parent 0c426a129a
commit ee9af54917
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,7 @@ steps:
status: [ success ] status: [ success ]
environment: environment:
pfx: pfx:
from_secret: pfx from_secret: pfx2022_b64
pfx_pass: pfx_pass:
from_secret: pfx_pass from_secret: pfx_pass
commands: commands:
@ -245,6 +245,8 @@ steps:
- echo $Env:pfx > codesign.pfx.b64 - echo $Env:pfx > codesign.pfx.b64
- certutil -decode codesign.pfx.b64 codesign.pfx - certutil -decode codesign.pfx.b64 codesign.pfx
- signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\cwtch.exe - signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\cwtch.exe
- signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\libCwtch.dll
- signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\flutter_windows.dll
- copy windows\runner\resources\knot_128.ico $Env:releasedir\cwtch.ico - copy windows\runner\resources\knot_128.ico $Env:releasedir\cwtch.ico
- makensis windows\nsis\cwtch-installer.nsi - makensis windows\nsis\cwtch-installer.nsi
- move windows\nsis\cwtch-installer.exe cwtch-installer.exe - move windows\nsis\cwtch-installer.exe cwtch-installer.exe