Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtIF does not seem to package shell scripts
Qt 6.11 is out! See what's new in the release blog

QtIF does not seem to package shell scripts

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 187 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vmetodiev
    wrote last edited by
    #1

    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.qs
    

    I then build and run the installer:

    1. From the above-mentioned directory root - everything executes successfully and I get my application properly installed.
    2. 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
    1 Reply Last reply
    0
    • V Offline
      V Offline
      vmetodiev
      wrote last edited by
      #2

      UPDATE:
      Just figured it out - the proper location for the scripts is the data directory instead of meta.

      The thread can be closed.

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #3

        Hi,

        Glad you found out and thanks for sharing the solution !

        You can close the thread yourself by using the Topic Tools button or the three dotted menu beside the answer you deem correct :-)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved