Unsolved Get bundle of source code used in a project
-
It seems like it should be a relatively easy thing for Qt Creator to do, but is there a way to grab all the source files used in a Qt project and put them in a single bundle, that I can give to someone else to build my project? Maybe another tool or something? All the files are in the project. It would be cool if I could just right click on the project and say "Zip project"!
-
@JonathanA Usually a VCS like Git is used to share code
-
Hi
You could also just zip the project folder from the FileManager -
But the code also comes from outside the project folder. And I just want to send the code for this project, not the rest of things out there. It would seem like Qt knows about the location of all the code and could just go get it for me.
-
@JonathanA
Do you mean that in the project folder you also have code that is not used in the project and you wish to exclude that when zipping ?
Else i dont understand why zipping the folder is not exactly what you want :) -
@JonathanA if you use Git, the creator provides an archive action for that. Make sure you are using Creator 4.11 or newer. there must be a menu for that, but I just use Ctrl+ K git arch > Select Commit > Choose archive file > Done.
Regards
-
@mrjj No, I mean the other way. Outside of the project folders (like in ../../IGCommon) are some files we use. So if I just zip up the project folder, it won't include those files.
-
@JonathanA in tha case I'd write a script and call it as build targe or external tool.
Regards
-
@JonathanA
Hi
Ah ok but that would assume it should be able to unpack on other pc in same locations and
say i have my external project files on E:\ or /home/username
Then other pc must have those folders as else unzipping the project would not work.For such super zip to work, creator should be able to unzip in other locations pr zip location that is not possible to re-create and then also change the .pro file pr changed folder so it could be found in new locations.
So not sure it would be so simple to add to Creator.
But @aha_1980 sounds like GIT can do it so that would be worth checking out! :)