openframeworks / projectGenerator

repo for centralizing work on a tool to generate OF projects
84 stars 74 forks source link

Feature: option for version #110

Open thomasgeissl opened 8 years ago

thomasgeissl commented 8 years ago

Hello, can we add an option to the command line app get the version? Also, I think it would be useful if it is shown on the gui. I mostly just use the spotlight search on osx to open the projectGenerator and it does not tell me about the version and location. So I am never sure version I am using. I think showing this on the gui would be very useful for referencing, especially for forum posts. Can this be automated to show the current tag/commit? What do you think about adding a version option? Thomas

ofZach commented 8 years ago

I think this is a great idea... happy to take a PR on the command line app if you want to jump in. I can think about how to display this in the gui app. (there's already good example in the gui app of interacting with the command line app and parsing the output when you do a generate or update, here we'd call -v at the start of the gui app and use that value somewhere)

thomasgeissl commented 8 years ago

I will see what I can do. Not sure how to do the versioning. Can we automatically store the current commit in data/version.txt? Are there more elegant solutions?

ofZach commented 8 years ago

in OF we use a # define for version and it's part of a checklist to increment it. I'd think something similar would work here...

thomasgeissl commented 8 years ago

This does not mean it is incremented automatically, right? So i guess we have to talk more about versioning. A few things on this:

Edit: Forget the brew formula. This won't work because of the oF dependency.