2012-10-28 06:51:08 +01:00
|
|
|
::ASSEMBLY LINE BUILDER
|
|
|
|
@echo off
|
2012-11-28 11:27:50 +01:00
|
|
|
echo Promotion Type? (Choose * for recommended, @ for stable and x for unstable)
|
2012-10-28 06:51:08 +01:00
|
|
|
set /p PROMOTION=
|
|
|
|
|
|
|
|
set /p MODVERSION=<modversion.txt
|
|
|
|
set /p CurrentBuild=<buildnumber.txt
|
|
|
|
set /a BUILD_NUMBER=%CurrentBuild%+1
|
|
|
|
echo %BUILD_NUMBER% >buildnumber.txt
|
|
|
|
|
2012-12-14 15:13:14 +01:00
|
|
|
if %PROMOTION%==* (
|
|
|
|
echo %MODVERSION% >recommendedversion.txt
|
|
|
|
)
|
|
|
|
|
2012-10-28 06:51:08 +01:00
|
|
|
set FILE_NAME=AssemblyLine_v%MODVERSION%.%BUILD_NUMBER%.jar
|
2012-11-03 10:19:42 +01:00
|
|
|
set API_NAME=AssemblyLine_v%MODVERSION%.%BUILD_NUMBER%_api.zip
|
2012-10-28 06:51:08 +01:00
|
|
|
set BACKUP_NAME=AssemblyLine_v%MODVERSION%.%BUILD_NUMBER%_backup.zip
|
|
|
|
|
|
|
|
echo Starting to build %FILE_NAME%
|
|
|
|
|
|
|
|
::BUILD
|
|
|
|
runtime\bin\python\python_mcp runtime\recompile.py %*
|
|
|
|
runtime\bin\python\python_mcp runtime\reobfuscate.py %*
|
|
|
|
|
|
|
|
::ZIP-UP
|
|
|
|
cd reobf\minecraft\
|
2013-01-14 11:29:27 +01:00
|
|
|
7z a "..\..\builds\%FILE_NAME%" "*"
|
2012-10-28 06:51:08 +01:00
|
|
|
cd ..\..\
|
|
|
|
cd resources\
|
2013-01-14 11:29:27 +01:00
|
|
|
7z a "..\builds\%FILE_NAME%" "*"
|
|
|
|
7z a "..\builds\%BACKUP_NAME%" "*" -pdarkguardsman
|
2012-10-28 06:51:08 +01:00
|
|
|
cd ..\
|
|
|
|
cd src\
|
2013-01-14 11:29:27 +01:00
|
|
|
7z a "..\builds\%BACKUP_NAME%" "*\assemblyline\" -pdarkguardsman
|
|
|
|
7z a "..\builds\%API_NAME%" "*\assemblyline\api\"
|
2012-10-28 06:51:08 +01:00
|
|
|
cd ..\
|
|
|
|
|
2012-10-28 09:17:08 +01:00
|
|
|
::UPDATE INFO FILE
|
2012-11-03 10:19:42 +01:00
|
|
|
echo %PROMOTION% %FILE_NAME% %API_NAME%>>info.txt
|
2012-10-28 06:51:08 +01:00
|
|
|
|
|
|
|
::GENERATE FTP Script
|
2012-12-19 18:39:50 +01:00
|
|
|
echo open calclavia.com>ftpscript.txt
|
2012-10-28 06:51:08 +01:00
|
|
|
echo al@calclavia.com>>ftpscript.txt
|
2012-10-28 14:56:50 +01:00
|
|
|
echo VkE4laBa84R9>>ftpscript.txt
|
2012-10-28 06:51:08 +01:00
|
|
|
echo binary>>ftpscript.txt
|
2012-12-14 15:13:14 +01:00
|
|
|
echo put "recommendedversion.txt">>ftpscript.txt
|
2012-10-28 06:51:08 +01:00
|
|
|
echo put "builds\%FILE_NAME%">>ftpscript.txt
|
2012-11-03 10:19:42 +01:00
|
|
|
echo put "builds\%API_NAME%">>ftpscript.txt
|
2012-10-28 06:51:08 +01:00
|
|
|
echo put info.txt>>ftpscript.txt
|
|
|
|
echo quit>>ftpscript.txt
|
|
|
|
ftp.exe -s:ftpscript.txt
|
|
|
|
del ftpscript.txt
|
|
|
|
|
|
|
|
echo Done building %FILE_NAME% for UE %UE_VERSION%
|
|
|
|
|
|
|
|
pause
|