Rev 132 | Rev 153 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
123 | pmbaty | 1 | @echo off |
2 | |||
3 | set PRODUCT_NAME=Chess Giants |
||
4 | set PRODUCT_URL=http://www.pmbaty.com/chess/ |
||
132 | pmbaty | 5 | set OUTPUT_FILE=P:\www.pmbaty.com\chess\Chess Giants Installer.exe |
123 | pmbaty | 6 | |
126 | pmbaty | 7 | echo Creating the installer... |
132 | pmbaty | 8 | "%ProgramFiles(x86)%\NSIS\makensis.exe" "/XOutFile \"%OUTPUT_FILE%\"" "installer.nsi" > "nsis.log" |
144 | pmbaty | 9 | if errorlevel 1 goto exiterror |
123 | pmbaty | 10 | |
132 | pmbaty | 11 | rem // some time is needed for antiviruses etc to release the newly created file |
12 | ping 127.0.0.1 > nul |
||
13 | |||
123 | pmbaty | 14 | echo Signing the installer... |
15 | call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" |
||
16 | signtool sign /a /t http://timestamp.verisign.com/scripts/timestamp.dll /fd SHA256 /d "%PRODUCT_NAME% installer" /du %PRODUCT_URL% "%OUTPUT_FILE%" >> "nsis.log" |
||
17 | |||
18 | echo Finished. |
||
132 | pmbaty | 19 | pause > nul |
144 | pmbaty | 20 | exit /b 0 |
21 | |||
22 | :exiterror |
||
23 | type nsis.log |
||
24 | pause > nul |
||
25 | exit /b 1 |