Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved How can I call shell script, while clicking of run button of QT ?

    General and Desktop
    macos ios deployment 3rd party
    2
    3
    3644
    Loading More Posts
    • 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.
    • Y
      Yash001 last edited by Yash001

      I am working on MAC system and Qt 5.11.0.
      I would like to create the application bundle for my project.

      My project is includes many external dependencies. So that, I am doing copy 3rd party library into bundle with help of shell script. How can I call that script while clicking on run button of Qt in release mode.

      aha_1980 1 Reply Last reply Reply Quote 1
      • aha_1980
        aha_1980 Lifetime Qt Champion @Yash001 last edited by

        Hi @Yash001,

        One way to do it, is to add another build step in QtCreators project settings:

        0_1531367341084_216da047-2064-4266-88de-c690d632d9e8-grafik.png

        Another way is to integrate this into the project itself. If you use QMake as build system, you can have a look here: https://stackoverflow.com/questions/6300148/get-qmake-to-execute-shell-script-after-build-finished-on-mac

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 2
        • Y
          Yash001 last edited by

          @aha_1980 Thank you for exact answer. I am able to call the script with help of Qt creator Project settings.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post