Last active
September 6, 2021 12:49
-
-
Save rodnaxel/cf1f7c61ff093f43320c236c88a30379 to your computer and use it in GitHub Desktop.
Script autorun windeployqt after build project (for OS Windows)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this line below to your pro-file | |
# Deployment | |
CONFIG(debug, debug|release ) { | |
} else { | |
DESTDIR = distrib | |
DEPLOY_TARGET = $${OUT_PWD}/$${DESTDIR} | |
PATH_TO_QML_FILES = $${PWD}/ | |
DEPLOY_COMMAND = windeployqt | |
# Use += instead of = if you use multiple QMAKE_POST_LINKs | |
QMAKE_POST_LINK = $${DEPLOY_COMMAND} --qmldir $${PATH_TO_QML_FILES} $${DEPLOY_TARGET} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment