Add batch file to generate an installer with the version set to the current git tag.
Assuming a "vXXX" tag.
1 parent 845eea8 commit c51bf1f31b0771a48a3f0db91cb8d4fefd841e5c
@Sönke Ludwig Sönke Ludwig authored on 10 Feb 2014
Showing 2 changed files
View
6
installer/win/installer.nsi
; Defines
;--------------------------------------------------------
 
; Options
!define Version "0.9.20"
!ifndef Version
!define /ifndef Version "0.9.21"
!endif
!define DubExecPath "..\..\bin"
 
;--------------------------------------------------------
; Includes
View
4
installer/win/make_installer.cmd 0 → 100644
set GITVER=unknown
for /f %%i in ('git describe') do set GITVER=%%i
"%ProgramFiles(x86)%\NSIS\makensis.exe" "/DVersion=%GITVER:~1%" installer.nsi