Add instructions for windows dist

This commit is contained in:
Stephen Shelton 2020-03-03 17:09:21 -08:00
parent df3a2d5d90
commit d684021268
1 changed files with 21 additions and 1 deletions

View File

@ -13,4 +13,24 @@ C:\Qt\Tools\mingw530_32\opt\bin\ssleay32.dll
## Distribution
TODO
Creating a distribution archive from scratch involves invoking `windeployqt.exe`.
First, find this file. On my system, it's located at `C:\Qt\5.9.9\mingw53_32\bin\windeployqt.exe`. The preceding file path should match the Qt version and mingw version used to compile (e.g. the 'kit' mentioned above).
Invoke this with the arg `--qmldir` pointed to the `res/qml` directory of our source tree. The final argument should be a compiled `.exe` file or a directory containing such a file. It's best that this be an empty directory containing only this file, so that our eventual archive (e.g. `.zip` file) wraps a single directory.
```
C:\Qt\5.9.9\mingw53_32\bin\windeployqt.exe --qmldir ..\..\loki-network-control-panel\res\qml .
```
`windeployqt` should fill out the directory with a bunch of dependencies, but it will likely be missing some. Based on a diff, these are:
```
libgcc_s_dw2-1.dll
libstdc++-6.dll
libwinpthread-1.dll
```
These should be located alongside the `windeployqt.exe` from above.
Copy these files into the distribution directory, as well as the SSL DLL Files mentioned above. At this point, all required files should be present. Create an archive of the directory and we're done.