Rev 144 | Rev 154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 144 | Rev 153 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | @echo off |
1 | @echo off |
2 | 2 | ||
3 | set PRODUCT_NAME=Chess Giants |
3 | set PRODUCT_NAME=Chess Giants |
4 | set PRODUCT_URL=http://www.pmbaty.com/chess/ |
4 | set PRODUCT_URL=http://www.pmbaty.com/chess/ |
5 | set OUTPUT_FILE=P:\www.pmbaty.com\chess\Chess Giants Installer.exe |
5 | set OUTPUT_FILE=P:\www.pmbaty.com\chess\Chess Giants Installer.exe |
- | 6 | ||
- | 7 | echo Backing up config file... |
|
- | 8 | move ..\config.ini .\config.ini.bak > nul |
|
- | 9 | copy ..\config-DEFAULT.ini ..\config.ini > nul |
|
6 | 10 | ||
7 | echo Creating the installer... |
11 | echo Creating the installer... |
8 | "%ProgramFiles(x86)%\NSIS\makensis.exe" "/XOutFile \"%OUTPUT_FILE%\"" "installer.nsi" > "nsis.log" |
12 | "%ProgramFiles(x86)%\NSIS\makensis.exe" "/XOutFile \"%OUTPUT_FILE%\"" "installer.nsi" > "nsis.log" |
9 | if errorlevel 1 goto exiterror |
13 | if errorlevel 1 goto exiterror |
10 | 14 | ||
11 | rem // some time is needed for antiviruses etc to release the newly created file |
15 | rem // some time is needed for antiviruses etc to release the newly created file |
12 | ping 127.0.0.1 > nul |
16 | ping 127.0.0.1 > nul |
13 | 17 | ||
14 | echo Signing the installer... |
18 | echo Signing the installer... |
15 | call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" |
19 | 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" |
20 | signtool sign /a /t http://timestamp.verisign.com/scripts/timestamp.dll /fd SHA256 /d "%PRODUCT_NAME% installer" /du %PRODUCT_URL% "%OUTPUT_FILE%" >> "nsis.log" |
- | 21 | ||
- | 22 | echo Restoring configuration... |
|
- | 23 | del ..\config.ini > nul |
|
- | 24 | move .\config.ini.bak .\config.ini > nul |
|
17 | 25 | ||
18 | echo Finished. |
26 | echo Finished. |
19 | pause > nul |
27 | pause > nul |
20 | exit /b 0 |
28 | exit /b 0 |
21 | 29 |