build: windows should append date if nightly
authorTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 1 Mar 2013 00:56:37 +0000 (16:56 -0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 1 Mar 2013 01:44:31 +0000 (02:44 +0100)
vcbuild.bat

index 0a2bd5e..bf8074f 100644 (file)
@@ -133,6 +133,12 @@ if not defined msi goto run
 python "%~dp0tools\getnodeversion.py" > "%temp%\node_version.txt"
 if not errorlevel 0 echo Cannot determine current version of node.js & goto exit
 for /F "tokens=*" %%i in (%temp%\node_version.txt) do set NODE_VERSION=%%i
+
+if not defined NIGHTLY goto msibuild
+set NODE_VERSION=%NODE_VERSION%-%date:~10,4%%date:~4,2%%date:~7,2%
+
+:msibuild
+echo Building node-%NODE_VERSION%
 msbuild "%~dp0tools\msvs\msi\nodemsi.sln" /m /t:Clean,Build /p:Configuration=%config% /p:Platform=%msiplatform% /p:NodeVersion=%NODE_VERSION% %noetw_msi_arg% %noperfctr_msi_arg% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
 if errorlevel 1 goto exit