Error test and message added to UPX process. Fixed and commented out documentation addition line, so it can be used if needed, and causes no error message.

This commit is contained in:
ugetab 2010-05-08 00:51:14 +00:00
parent 2a83f68df0
commit 67a7a22641
1 changed files with 14 additions and 3 deletions

View File

@ -1,10 +1,21 @@
del /s fceux.zip del /s fceux.zip
copy ..\output\fceux.exe . copy ..\output\fceux.exe .
upx ..\output\fceux.exe upx ..\output\fceux.exe
IF ERRORLEVEL 1 GOTO UPXFailed
cd ..\output cd ..\output
..\vc\zip -X -9 -r ..\vc\fceux.zip fceux.exe fceux.chm 7z.dll *.dll palettes luaScripts ..\vc\zip -X -9 -r ..\vc\fceux.zip fceux.exe fceux.chm 7z.dll *.dll palettes luaScripts
move /y ..\vc\fceux.exe . move /y ..\vc\fceux.exe .
..\vc\zip -X -9 -r ..\vc\fceux.zip auxlib.lua ..\vc\zip -X -9 -r ..\vc\fceux.zip auxlib.lua
cd ..\ cd ..
..\vc\zip -X -9 -r ..\vc\fceux.zip documentation REM vc\zip -X -9 -r vc\fceux.zip documentation
cd vc cd vc
GOTO end
:UPXFailed
CLS
echo.
echo FCEUX.EXE is either compiling or running.
echo Close it or let it finish before trying this script again.
pause
:end