0

Can I obtain the hash of the last commit and Version Tag from Git for my wix installer easily?

Generally I just want to build my software without changing the versions in seperate files. I just want to do it with git.

Iron
  • 477
  • 4
  • 19
  • You might want to refine what you mean: [git cannot have revision numbers](http://stackoverflow.com/a/4120038/2226988). – Tom Blodget Jul 05 '14 at 03:32

1 Answers1

-1

I build a preprocessor extension with wix. I used lib2git to get the tag and the hash. I needed to short the hash to 4 digits and convert it to integer, because wix does only support integer AFAIK. With the preprocessor I was able to give my installer script the variable.

Iron
  • 477
  • 4
  • 19