Skip to content

Commit

Permalink
Add batch file to generate an installer with the version set to the c…
Browse files Browse the repository at this point in the history
…urrent git tag.

Assuming a "vXXX" tag.
  • Loading branch information
s-ludwig committed Feb 10, 2014
1 parent 845eea8 commit c51bf1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer/win/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ SetCompressor /SOLID lzma
;--------------------------------------------------------

; Options
!define Version "0.9.20"
!ifndef Version
!define /ifndef Version "0.9.21"
!endif
!define DubExecPath "..\..\bin"

;--------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions installer/win/make_installer.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set GITVER=unknown
for /f %%i in ('git describe') do set GITVER=%%i
"%ProgramFiles(x86)%\NSIS\makensis.exe" "/DVersion=%GITVER:~1%" installer.nsi

0 comments on commit c51bf1f

Please sign in to comment.