-
Notifications
You must be signed in to change notification settings - Fork 3
Releasing for Windows using windeployqt.exe
Piyush Aggarwal edited this page Oct 6, 2020
·
1 revision
Using this software collects all the runtime libraries and puts them besides the executable built by the project. Then just share the zip or make an installer on top of it.
-
make a release build from Qt Creator.
-
copy over
stegano.exe
from release build to a separate folder, sayREL_FOLDER
. -
add
Qt/(MAJOR_V).(MINOR_V).(PATCH_V)/(compiler)/bin
to PATH for ease of use if not done already. -
run this command:-
windeployqt.exe ${REL_FOLDER}/stegano.exe --qmldir "C:\Users\Piyush Aggarwal\Desktop\stegano"
> - `windeployqt.exe` was installed in : `Qt/(MAJOR_V).(MINOR_V).(PATCH_V)/(compiler)/bin` > - pass the binary's location to `windeployqt.exe` : `${REL_FOLDER}/stegano.exe` > - pass qmldir location so it can pick up all the QMLs used : `-qmldir "C:\Users\Piyush Aggarwal\Desktop\stegano"`
-
that's it. You're done. Now package it however you'd like.
Alternatively just use CQtDeployer for Windows.