From 055a933fa9ecc3df2aefd6ea74dfb7c9fce684d7 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 22 Nov 2011 18:17:12 -0800 Subject: [PATCH] Add exe and msi signing to vcbuild.bat --- vcbuild.bat | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vcbuild.bat b/vcbuild.bat index 8bd9316..38a1951 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -16,6 +16,7 @@ set config=Debug set target=Build set noprojgen= set nobuild= +set nosign= set test= set test_args= set msi= @@ -28,6 +29,7 @@ if /i "%1"=="release" set config=Release&goto arg-ok if /i "%1"=="clean" set target=Clean&goto arg-ok if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok if /i "%1"=="nobuild" set nobuild=1&goto arg-ok +if /i "%1"=="nosign" set nosign=1&goto arg-ok if /i "%1"=="test-uv" set test=test-uv&goto arg-ok if /i "%1"=="test-internet"set test=test-internet&goto arg-ok if /i "%1"=="test-pummel" set test=test-pummel&goto arg-ok @@ -77,6 +79,9 @@ goto run msbuild node.sln /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo if errorlevel 1 goto exit +if defined nosign goto msi +signtool sign /a Release\node.exe + :msi @rem Skip msi generation if not requested if not defined msi goto run @@ -87,6 +92,9 @@ heat dir deps\npm -var var.NPMSourceDir -dr NodeModulesFolder -cg NPMFiles -gg - msbuild "%~dp0tools\msvs\msi\nodemsi.sln" /t:Clean,Build /p:Configuration=%config% /p:NodeVersion=%NODE_VERSION% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo if errorlevel 1 goto exit +if defined nosign goto run +signtool sign /a Release\node.msi + :run @rem Run tests if requested. if "%test%"=="" goto exit @@ -123,7 +131,7 @@ scp Release\node.pdb node@nodejs.org:~/web/nodejs.org/dist/v%NODE_VERSION%/node. goto exit :help -echo vcbuild.bat [debug/release] [msi] [test-all/test-uv/test-internet/test-pummel/test-simple/test-message] [clean] [noprojgen] [nobuild] +echo vcbuild.bat [debug/release] [msi] [test-all/test-uv/test-internet/test-pummel/test-simple/test-message] [clean] [noprojgen] [nobuild] [nosign] echo Examples: echo vcbuild.bat : builds debug build echo vcbuild.bat release msi : builds release build and MSI installer package -- 2.7.4