Skip to content

Instantly share code, notes, and snippets.

@rodnaxel
Last active September 6, 2021 12:49
Show Gist options
  • Save rodnaxel/cf1f7c61ff093f43320c236c88a30379 to your computer and use it in GitHub Desktop.
Save rodnaxel/cf1f7c61ff093f43320c236c88a30379 to your computer and use it in GitHub Desktop.
Script autorun windeployqt after build project (for OS Windows)
# 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