Skip to content
Browse files

Add exe and msi signing to vcbuild.bat

  • Loading branch information...
1 parent e5cf3f9 commit 055a933fa9ecc3df2aefd6ea74dfb7c9fce684d7 @ry ry committed
Showing with 9 additions and 1 deletion.
  1. +9 −1 vcbuild.bat
View
10 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

0 comments on commit 055a933

Please sign in to comment.
Something went wrong with that request. Please try again.