Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I call shell script, while clicking of run button of QT ?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
macosiosdeployment3rd party
3 Posts 2 Posters 4.1k Views
  • 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 Offline
    Y Offline
    Yash001
    wrote on last edited by Yash001
    #1

    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_1980A 1 Reply Last reply
    1
    • Y 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_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      2
      • Y Offline
        Y Offline
        Yash001
        wrote on last edited by
        #3

        @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
        1

        • Login

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