mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 10:42:37 +02:00
26 lines
819 B
Batchfile
26 lines
819 B
Batchfile
REM delete old dist and build files
|
|
rmdir /s /q dist
|
|
rmdir /s /q build
|
|
|
|
REM build the exe with pyinstaller
|
|
pyinstaller install\pyinstaller\pyinstaller.spec
|
|
|
|
REM code sign dangerzone.exe
|
|
signtool.exe sign /v /d "Dangerzone" /sha1 28a4af3b6ba5ed0ef307e1b96a140e1b42450c3b /tr http://timestamp.digicert.com dist\dangerzone\dangerzone.exe
|
|
|
|
REM build the wix file
|
|
python install\windows\build-wxs.py > install\windows\Dangerzone.wxs
|
|
|
|
REM build the msi package
|
|
cd build
|
|
mkdir wix
|
|
cd wix
|
|
candle.exe ..\..\install\windows\Dangerzone.wxs
|
|
light.exe -ext WixUIExtension Dangerzone.wixobj
|
|
|
|
REM code sign dangerzone.msi
|
|
signtool.exe sign /v /d "Dangerzone" /sha1 28a4af3b6ba5ed0ef307e1b96a140e1b42450c3b /tr http://timestamp.digicert.com Dangerzone.msi
|
|
|
|
REM moving Dangerzone.msi to dist
|
|
cd ..\..
|
|
move build\wix\Dangerzone.msi dist
|