2010-11-06 23:04:47 +01:00
|
|
|
@echo off
|
|
|
|
call _paths.bat
|
|
|
|
REM ------------------------------------------
|
|
|
|
set "TEMP_DIR=%TEMP%\~LameXP.%DATE%.tmp"
|
2010-11-07 23:06:30 +01:00
|
|
|
set "OUT_PATH=..\..\bin\Release"
|
2010-11-06 23:04:47 +01:00
|
|
|
set "OUT_FILE=%OUT_PATH%\..\LameXP.%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%.Release.zip"
|
|
|
|
REM ------------------------------------------
|
|
|
|
del "%OUT_FILE%"
|
|
|
|
if exist "%OUT_FILE%" (
|
|
|
|
echo.
|
|
|
|
echo BUILD HAS FAILED !!!
|
|
|
|
echo.
|
|
|
|
pause
|
|
|
|
exit
|
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
|
|
|
call _build.bat "..\..\LameXP.sln" Release
|
|
|
|
REM ------------------------------------------
|
2010-11-09 22:06:11 +01:00
|
|
|
if not "%LAMEXP_BUILD_SUCCESS%"=="YES" (
|
2010-11-06 23:04:47 +01:00
|
|
|
echo.
|
|
|
|
echo BUILD HAS FAILED !!!
|
|
|
|
echo.
|
|
|
|
pause
|
|
|
|
exit
|
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
|
|
|
rd /S /Q "%TEMP_DIR%"
|
|
|
|
mkdir "%TEMP_DIR%"
|
|
|
|
mkdir "%TEMP_DIR%\imageformats"
|
|
|
|
REM ------------------------------------------
|
|
|
|
copy "%OUT_PATH%\*.exe" "%TEMP_DIR%"
|
2010-11-07 23:06:30 +01:00
|
|
|
copy "%QTDIR%\bin\QtCore4.dll" "%TEMP_DIR%"
|
|
|
|
copy "%QTDIR%\bin\QtGui4.dll" "%TEMP_DIR%"
|
|
|
|
copy "%QTDIR%\bin\QtXml4.dll" "%TEMP_DIR%"
|
|
|
|
copy "%QTDIR%\bin\QtSvg4.dll" "%TEMP_DIR%"
|
2010-11-06 23:04:47 +01:00
|
|
|
copy "%QTDIR%\plugins\imageformats\q???4.dll" "%TEMP_DIR%\imageformats"
|
|
|
|
REM ------------------------------------------
|
|
|
|
for %%f in ("%TEMP_DIR%\*.exe") do (
|
2010-11-09 22:06:11 +01:00
|
|
|
"%PATH_UPXBIN%" --best --lzma "%%f"
|
2010-11-06 23:04:47 +01:00
|
|
|
)
|
|
|
|
for %%f in ("%TEMP_DIR%\*.dll") do (
|
2010-11-09 22:06:11 +01:00
|
|
|
"%PATH_UPXBIN%" --best --lzma "%%f"
|
2010-11-06 23:04:47 +01:00
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
|
|
|
copy "..\Redist\*.*" "%TEMP_DIR%"
|
|
|
|
copy "..\..\License.txt" "%TEMP_DIR%"
|
|
|
|
REM ------------------------------------------
|
|
|
|
"%PATH_SEVENZ%" a -tzip -r "%OUT_FILE%" "%TEMP_DIR%\*"
|
|
|
|
rd /S /Q "%TEMP_DIR%"
|
|
|
|
REM ------------------------------------------
|
|
|
|
pause
|