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 the bash script from .pro file?
QtWS25 Last Chance

How can i call the bash script from .pro file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt 5.14.2qmakeqmakedelfileqmake makefile
4 Posts 3 Posters 1.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 27 May 2020, 20:07 last edited by
    #1

    I do have one script for creating installer for linux. i would like to call that script from .pro file.

    Here I mention my profile.

    TEMPLATE = lib
    TARGET = SquidStatInstaller
    QT += core
    QMAKE_POST_LINK += $$quote(bash ./../../_LinuxDeploy/linuxdeploy.sh $$[QT_INSTALL_BINS])
    

    It is calling linuxdeploy.sh script if build directory is not present for project SquidStatInstaller. when I do rebuild the project then it is not calling to that script.

    Is it anyway to call the script while doing rebuild or build or run qmake?

    I know how can i call from custom build. I would like to set from .pro file because. I am calling different script for Mac and linux.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 28 May 2020, 00:08 last edited by
      #2
      This post is deleted!
      B 1 Reply Last reply 28 May 2020, 00:21
      0
      • K Kent-Dorfman
        28 May 2020, 00:08

        This post is deleted!

        B Offline
        B Offline
        Bonnie
        wrote on 28 May 2020, 00:21 last edited by
        #3

        @Yash001
        How about using $$clean_path($$PWD/./../../_LinuxDeploy/linuxdeploy.sh) instead of the relative path?

        Y 1 Reply Last reply 28 May 2020, 18:21
        1
        • B Bonnie
          28 May 2020, 00:21

          @Yash001
          How about using $$clean_path($$PWD/./../../_LinuxDeploy/linuxdeploy.sh) instead of the relative path?

          Y Offline
          Y Offline
          Yash001
          wrote on 28 May 2020, 18:21 last edited by
          #4

          @Bonnie
          .pro file is identify the path but the issue is, whenever I do rebuild at that time it is not call to linuxdeploy.sh.

          I want to know if any variable is call the to script on build.

          1 Reply Last reply
          0

          1/4

          27 May 2020, 20:07

          • Login

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