Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



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



  • This post is deleted!


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



  • @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.