Change multistep windows build into one step

This commit is contained in:
Micah Lee 2021-11-24 12:21:38 -08:00
parent 4572922042
commit 61839f5b24
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
4 changed files with 12 additions and 29 deletions

View file

@ -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`.

View file

@ -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

View file

@ -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

View file

@ -1,4 +0,0 @@
REM make dangerzone-container.exe symbolic link (as administrator)
cd dist\dangerzone
mklink dangerzone-cli.exe dangerzone.exe
cd ..\..