[Qt-creator] Is there a way to automatically tag builds?

Murphy, Sean smurphy at walbro.com
Wed Jun 11 17:10:12 CEST 2014


I was wondering if there is any way to automatically tag builds using QtCreator?  If it's important, I'm on Windows and using Git as my version control.

What I'd like to have happen:
- I'd have an "About <App Name>" dialog that would include a build number string.
- The build number string would get automatically updated each time I recompiled
- Somehow the code in Git would get automatically tagged with the current build number

The last one seems kind of tough?  When I compile, I'm going to have local changes that aren't checked into Git yet, so if I just tagged the repository with the build number at that point, the code in the repository isn't going to match the code that went into the executable.  So somehow I'd need QtCreator to automatically check in all code and tag it with the build number?

Basically, I'm looking for a foolproof way of stumbling across an executable days/weeks/months from now, and being able to roll my repository back to that exact code base.  Right now, I'm just too hit-or-miss about remembering to check the code into Git every time I make a single change and compile.  And I don't have currently a build numbering system at all.

I'd love to hear how other people are doing it, especially with QtCreator, since I'd love to just learn how to do it once, and have it work for all platforms.

Sean



More information about the Qt-creator mailing list