Subversion Repositories Games.Chess Giants

Rev

Rev 163 | 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/
192 pmbaty 5
set OUTPUT_FILE=Z:\Documents\Mes projets\www.pmbaty.com\chess\Chess Giants Installer.exe
123 pmbaty 6
 
153 pmbaty 7
echo Backing up config file...
8
move ..\config.ini .\config.ini.bak > nul
9
copy ..\config-DEFAULT.ini ..\config.ini > nul
10
 
126 pmbaty 11
echo Creating the installer...
132 pmbaty 12
"%ProgramFiles(x86)%\NSIS\makensis.exe" "/XOutFile \"%OUTPUT_FILE%\"" "installer.nsi" > "nsis.log"
144 pmbaty 13
if errorlevel 1 goto exiterror
123 pmbaty 14
 
132 pmbaty 15
rem // some time is needed for antiviruses etc to release the newly created file
16
ping 127.0.0.1 > nul
17
 
123 pmbaty 18
echo Signing the installer...
192 pmbaty 19
call "Z:\Documents\Mes projets\Windows code signer\sign.bat" "%OUTPUT_FILE%" "Chess Giants" "Pierre-Marie Baty" pm@pmbaty.com FR "Chess Giants installer" https://www.pmbaty.com/chess/
123 pmbaty 20
 
153 pmbaty 21
echo Restoring configuration...
22
del ..\config.ini > nul
154 pmbaty 23
move .\config.ini.bak ..\config.ini > nul
153 pmbaty 24
 
123 pmbaty 25
echo Finished.
132 pmbaty 26
pause > nul
144 pmbaty 27
exit /b 0
28
 
29
:exiterror
30
type nsis.log
31
pause > nul
32
exit /b 1