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?

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 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
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2
      This post is deleted!
      B 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        This post is deleted!

        B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

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

        Y 1 Reply Last reply
        1
        • B Bonnie

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

          Y Offline
          Y Offline
          Yash001
          wrote on 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

          • Login

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