Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to bundle user-editable configuration files? #431

Closed
gheckman-gadova opened this issue Oct 21, 2020 · 5 comments
Closed

Is it possible to bundle user-editable configuration files? #431

gheckman-gadova opened this issue Oct 21, 2020 · 5 comments
Assignees
Labels
question Further information is requested
Projects
Milestone

Comments

@gheckman-gadova
Copy link

The layout of my build directory looks like:

release
├ bin
│  ├ Qml.exe
│  └ Console.exe
├ libs
│  ├ mylib1.so
│  └ mylib2.so
└ config
   ├ config1.ini
   └ config2.ini

When I run CQtDeployer, it bundles my bin directory and libs, but I can't figure out how to get my config files into the bundle. I need them in the final installation because they are meant to be edited by the user. Is that possible?

@EndrII EndrII self-assigned this Oct 21, 2020
@EndrII EndrII added the question Further information is requested label Oct 21, 2020
@EndrII EndrII added this to the v1.5 milestone Oct 21, 2020
@EndrII EndrII added this to To do in qtDeployer via automation Oct 21, 2020
@EndrII
Copy link
Member

EndrII commented Oct 21, 2020

Hi.
In the current time it is impossible, but you can copy your editable files into bin or plugins location.

For copy your files into a "bin" location just add them to the "bin" option

example configFile:

{
"bin": [
"path/to/config1.ini",
"path/to/config2.ini",
]
}

Result :

release
├ bin
│  ├ Qml.exe
│  ├ Console.exe
│  ├ config1.ini
│  └ config2.ini
├ libs
     ├ mylib1.so
     └ mylib2.so

For copy your files into plugins location use a extraPlugins option:

example configFile:

{
"extraPlugins": [
"path/to/config1.ini",
"path/to/config2.ini",
]
}

Result:

release
├ bin
│  ├ Qml.exe
│  └ Console.exe
├ libs
│  ├ mylib1.so
│  └ mylib2.so
└ plugins
   ├ config1.ini
   └ config2.ini

@EndrII
Copy link
Member

EndrII commented Oct 21, 2020

if this solution doesn't work for you, I could add an option to install additional files.

@gheckman-gadova
Copy link
Author

Thanks. That will work for now.

@EndrII
Copy link
Member

EndrII commented Oct 21, 2020

i am reopen old task #114 with you problem and close this issue because you have a temp solution.
Using the bin or extraPlugins options

@EndrII EndrII closed this as completed Oct 21, 2020
qtDeployer automation moved this from To do to Done Oct 21, 2020
@EndrII
Copy link
Member

EndrII commented Dec 6, 2020

@gheckman-gadova

Now in the cqtdeployer 1.5 it is passable.
You can use the extraData and extraDataOut options.

Example :

cqtdeployer -bin myProject -extraData path/to/config1.ini,path/to/config2.ini -extraDataOut config

You can download the cqtdeployer 1.5 from the any online installer or from the snap store

sudo snap install cqtdeployer --edge

Warning

cqtdeployer 1.5 is in alpha and may contain undefined bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
No open projects
qtDeployer
  
Done
Development

No branches or pull requests

2 participants