diff --git a/vc/archive.bat b/vc/archive.bat index b9f4ea79..22d0b887 100644 --- a/vc/archive.bat +++ b/vc/archive.bat @@ -1,10 +1,21 @@ del /s fceux.zip copy ..\output\fceux.exe . upx ..\output\fceux.exe +IF ERRORLEVEL 1 GOTO UPXFailed cd ..\output ..\vc\zip -X -9 -r ..\vc\fceux.zip fceux.exe fceux.chm 7z.dll *.dll palettes luaScripts move /y ..\vc\fceux.exe . ..\vc\zip -X -9 -r ..\vc\fceux.zip auxlib.lua -cd ..\ -..\vc\zip -X -9 -r ..\vc\fceux.zip documentation -cd vc \ No newline at end of file +cd .. +REM vc\zip -X -9 -r vc\fceux.zip documentation +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