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 to write a deploy task?
Forum Update on Monday, May 27th 2025

How to write a deploy task?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 453 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.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by
    #1

    At the moment I've been using qmake to compile and run my project inside of the Qt Creator IDE. I'm at the point where I'd like to create a script to bundle up the files I've created to build an installer. Other IDEs I've used have had build environments that let you write additional tasks.

    I'd like to create a target to compile a release build of my code, copy it and some relevant DLLs to a deployment directory and then run a script to bundle them into an installer. Can this be done using qmake? Would I be better writing a script that is run from the command line? Can this be integrated into the IDE in any way?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      well there is the
      https://doc.qt.io/qt-5/windows-deployment.html
      Windows Deployment Tool
      that you can run.

      1 Reply Last reply
      2
      • K Offline
        K Offline
        kitfox
        wrote on last edited by kitfox
        #3

        Thanks, but my question wasn't about deploy tools as much as it was about extending the Qt Creator IDE with perhaps a scripting language? Writing a deployment task is simply the most immediate thing I would like to do with it.

        mrjjM 1 Reply Last reply
        0
        • K kitfox

          Thanks, but my question wasn't about deploy tools as much as it was about extending the Qt Creator IDE with perhaps a scripting language? Writing a deployment task is simply the most immediate thing I would like to do with it.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @kitfox
          well qmake can already call command/shell scripts so that goes a long way to automating stuff.

          However, Since QtCreator is plugin based, you can write a plugin that can utilize its data model for various tasks.
          Python should work fine for a scripting language since it already has Qt bindings.
          Would be pretty cool but would take quite some work.

          https://doc-snapshots.qt.io/qtcreator-extending/creating-plugins.html

          1 Reply Last reply
          2

          • Login

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