QuasarApp / CQtDeployer

This project is used to deploy applications written using QML, qt or other С / С++ frameworks.
https://quasarapp.ddns.net:3031/docs/QuasarApp/CQtDeployer/latest/
GNU Lesser General Public License v3.0
577 stars 87 forks source link

How to copy config files into bin directory #739

Closed laxian closed 1 year ago

laxian commented 1 year ago

I want to pack some config files into the bin directory, What should I do?

I've tried the "-bin" option, which didn't work:

# cqtdeployer -bin ./build/qt_hmi,./build/config.json -libDir .sdk,libs,cjson -extraLibs "libxcb-xinput,freetype,libpng"
Info: Deploy ...
Info: The targetDir option is not used. CQtDeployer will use default target dir :/var/lib/jenkins/workspace/qt_hmi/default/DistributionKit
Info: copy :/var/lib/jenkins/workspace/qt_hmi/default/build/qt_hmi
Error: Internal error ocurred in smartMoveTargets (configparser.cpp:1559).
Error: If you see this message please create a new issue about this problem on the official github page https://github.com/QuasarApp/CQtDeployer/issues/new/choose.
Error: Fail to copy targets
Error: The CQtDeployer fail to deploy application.

Thank you!

EndrII commented 1 year ago

Hi, you can use the extraData and extraDataOut options

Short example for your case:

cqtdeployer -bin ./build/qt_hmi -extraData ./build/config.json -extraDataOut bin -libDir .sdk,libs,cjson -extraLibs "libxcb-xinput,freetype,libpng"

By default, the extra data will copy into a root distribution folder, but you can change it using an extraDataOut option.

laxian commented 1 year ago
image

@EndrII It works! thank you!