Qt 6.11 is out! See what's new in the release
blog
QtIF does not seem to package shell scripts
-
Dear Community,
I have the following (standard) directory structure of a QtIF project - with several shell scripts to solve different side dependencies required during the installation:
├── config │ ├── config.xml │ ├── control_script.qs │ ├── image.png │ └── script0.sh └── packages └── com.vendor.product ├── data │ └── archive.tar.xz └── meta ├── script1.sh ├── script2.sh ├── component_script.qsI then build and run the installer:
- From the above-mentioned directory root - everything executes successfully and I get my application properly installed.
- I move the installer binary to a another location and execute it. As soon as I reach the shell script execution step, it stops with an error 127 (not being able to find the script):
Error during installation process (com.vendor.product): Execution failed (Unexpected exit code: 127): "bash -c ./packages/com.vendor.product/meta/script1.sh"Inside the .qs script files, I tried with both the relative paths and the Qt resources convention (like :/ and :/metadata), but none of the approaches seem to work.
Could anyone advise if my expectation that the shell scripts get packaged as part of the installer is correct? And what are the best practices in such scenario?
Thanks!
- Varban
-
Hi,
Glad you found out and thanks for sharing the solution !
You can close the thread yourself by using the
Topic Toolsbutton or the three dotted menu beside the answer you deem correct :-)