resonant-induction/publish.bat

54 lines
1.4 KiB
Batchfile
Raw Normal View History

2012-10-28 06:51:08 +01:00
::ASSEMBLY LINE BUILDER
@echo off
echo Promotion Type?
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
2012-10-28 09:17:08 +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\
"..\..\..\7za.exe" a "..\..\builds\%FILE_NAME%" "*"
cd ..\..\
"..\7za.exe" a "builds\%FILE_NAME%" "mcmod.info"
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
2012-10-28 06:51:08 +01:00
::"..\..\7za.exe" a "..\builds\%API_NAME%" "*\atomicscience\api\"
cd ..\
2012-10-28 09:17:08 +01:00
::UPDATE INFO FILE
2012-10-28 06:51:08 +01:00
echo %PROMOTION% %FILE_NAME%>>info.txt
::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
echo put "builds\%FILE_NAME%">>ftpscript.txt
::echo put "builds\%API_NAME%">>ftpscript.txt
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