mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Change multistep windows build into one step
This commit is contained in:
parent
4572922042
commit
61839f5b24
4 changed files with 12 additions and 29 deletions
18
BUILD.md
18
BUILD.md
|
@ -223,24 +223,10 @@ mklink dangerzone-container.exe dangerzone.exe
|
|||
|
||||
### To build the installer
|
||||
|
||||
Note that you must have a codesigning certificate installed in order to use the `install\windows\build.bat` script, because it codesigns `dangerzone.exe` and `Dangerzone.msi`.
|
||||
|
||||
Open a command prompt, cd to the dangerzone directory, and run:
|
||||
Note that you must have a codesigning certificate installed in order to use the `install\windows\build-app.bat` script, because it codesigns `dangerzone.exe` and `Dangerzone.msi`.
|
||||
|
||||
```
|
||||
poetry run install\windows\step1-build-exe.bat
|
||||
```
|
||||
|
||||
Open a second command prompt _as an administratror_, cd to the dangerzone directory, and run:
|
||||
|
||||
```
|
||||
install\windows\step2-make-symlink.bat
|
||||
```
|
||||
|
||||
Then back in the first command prompt, run:
|
||||
|
||||
```
|
||||
poetry run install\windows\step3-build-installer.bat
|
||||
poetry run .\install\windows\build-app.bat
|
||||
```
|
||||
|
||||
When you're done you will have `dist\Dangerzone.msi`.
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
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
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
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
|
|
@ -1,4 +0,0 @@
|
|||
REM make dangerzone-container.exe symbolic link (as administrator)
|
||||
cd dist\dangerzone
|
||||
mklink dangerzone-cli.exe dangerzone.exe
|
||||
cd ..\..
|
Loading…
Reference in a new issue