mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 02:32:38 +02:00

Python 3.10.12 fixes some CVEs for which Dangerzone does not appear to be affected, however its binaries are not made available by the python foundation. Moving to 3.11 should be trivial since this was already deployed in Fedora 37+.
27 lines
943 B
Batchfile
27 lines
943 B
Batchfile
REM delete old dist and build files
|
|
rmdir /s /q dist
|
|
rmdir /s /q build
|
|
|
|
REM build the exe
|
|
python .\setup-windows.py build
|
|
|
|
REM code sign dangerzone.exe
|
|
signtool.exe sign /v /d "Dangerzone" /sha1 1a0345732140749bdaa03efe8591b2c2a036884c /tr http://timestamp.digicert.com build\exe.win-amd64-3.11\dangerzone.exe
|
|
signtool.exe sign /v /d "Dangerzone" /sha1 1a0345732140749bdaa03efe8591b2c2a036884c /tr http://timestamp.digicert.com build\exe.win-amd64-3.11\dangerzone-cli.exe
|
|
|
|
REM build the wix file
|
|
python install\windows\build-wxs.py > build\Dangerzone.wxs
|
|
|
|
REM build the msi package
|
|
cd build
|
|
candle.exe Dangerzone.wxs
|
|
light.exe -ext WixUIExtension Dangerzone.wixobj
|
|
|
|
REM code sign dangerzone.msi
|
|
insignia.exe -im Dangerzone.msi
|
|
signtool.exe sign /v /d "Dangerzone" /sha1 1a0345732140749bdaa03efe8591b2c2a036884c /tr http://timestamp.digicert.com Dangerzone.msi
|
|
|
|
REM moving Dangerzone.msi to dist
|
|
cd ..
|
|
mkdir dist
|
|
move build\Dangerzone.msi dist
|