Skip to content

Commit

Permalink
Change: Verify the signatures of the signed files with signtool verify
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarasti authored and apyrgio committed Oct 16, 2024
1 parent b79113c commit 4abd472
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install/windows/build-app.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ python .\setup-windows.py build
REM code sign dangerzone.exe
signtool.exe sign /v /d "Dangerzone" /a /n "Freedom of the Press Foundation" /fd sha256 /t http://time.certum.pl/ build\exe.win-amd64-3.12\dangerzone.exe

REM verify the signature of dangerzone.exe
signtool.exe verify /pa build\exe.win-amd64-3.12\dangerzone.exe

REM code sign dangerzone-cli.exe
signtool.exe sign /v /d "Dangerzone" /a /n "Freedom of the Press Foundation" /fd sha256 /t http://time.certum.pl/ build\exe.win-amd64-3.12\dangerzone-cli.exe

REM verify the signature of dangerzone-cli.exe
signtool.exe verify /pa build\exe.win-amd64-3.12\dangerzone-cli.exe

REM build the wix file
python install\windows\build-wxs.py > build\Dangerzone.wxs

Expand All @@ -23,6 +29,9 @@ REM code sign Dangerzone.msi
insignia.exe -im Dangerzone.msi
signtool.exe sign /v /d "Dangerzone" /a /n "Freedom of the Press Foundation" /fd sha256 /t http://time.certum.pl/ Dangerzone.msi

REM verify the signature of Dangerzone.msi
signtool.exe verify /pa Dangerzone.msi

REM moving Dangerzone.msi to dist
cd ..
mkdir dist
Expand Down

0 comments on commit 4abd472

Please sign in to comment.