electrodynamics/publish.bat

52 lines
1.5 KiB
Batchfile
Raw Normal View History

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
set FILE_NAME=AssemblyLine_v%MODVERSION%.%BUILD_NUMBER%.jar
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\
"..\..\..\7za.exe" a "..\..\builds\%FILE_NAME%" "*"
cd ..\..\
cd resources\
"..\..\7za.exe" a "..\builds\%FILE_NAME%" "*"
2012-10-28 09:17:08 +01:00
"..\..\7za.exe" a "..\builds\%BACKUP_NAME%" "*" -pdarkguardsman
2012-10-28 06:51:08 +01:00
cd ..\
cd src\
2012-10-28 09:17:08 +01:00
"..\..\7za.exe" a "..\builds\%BACKUP_NAME%" "*\assemblyline\" -pdarkguardsman
"..\..\7za.exe" 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
echo %PROMOTION% %FILE_NAME% %API_NAME%>>info.txt
2012-10-28 06:51:08 +01:00
::GENERATE FTP Script
echo open www.calclavia.com>ftpscript.txt
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-08 05:33:18 +01:00
echo put "modversion.txt">>ftpscript.txt
2012-10-28 06:51:08 +01:00
echo put "builds\%FILE_NAME%">>ftpscript.txt
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