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
570 stars 89 forks source link

Copy extraData to multiple directories #798

Closed hirseboy closed 6 months ago

hirseboy commented 6 months ago

Sorry, I did not fully understand your documentation, but is it possible to copy extraData to multiple directories?

EndrII commented 6 months ago

Hi, it's simple. just prepare your extra data dirs. For example

myDir/with/extra1/ myDir/with/extra2

Each dirs should be contained own subdirectory that should be to contain in your distribution. and just add your dirs with extra data to deploy. After this, override the output directory using a extraDataOut option, to a distribution root dir..

cqtdeployer -extraDir "myDir/with/extra1/,myDir/with/extra2" -extraDataOut "/"
EndrII commented 6 months ago

here is my example extraDataMultiDirExample.zip

example.sh

cqtdeployer -extraData extra1,extra2 -extraDataOut / zip
.
├── DistributionKit
│   ├── Application
│   │   ├── extra1
│   │   │   └── header1.h
│   │   └── extra2
│   │       └── header2.h
│   ├── Application.zip
│   └── Application.zip.md5
├── example.sh
├── extra1
│   └── header1.h
└── extra2
    └── header2.h

7 directories, 7 files