0df335b442
Also update IC2 api files but it doesn't look like anything has changed. Another thing 7zip does work that way on my computer as the script for building was created. I have to use the 7za.exe inorder to get it too work.
56 lines
No EOL
1.6 KiB
Batchfile
56 lines
No EOL
1.6 KiB
Batchfile
::ASSEMBLY LINE BUILDER
|
|
@echo off
|
|
echo Promotion Type? (Choose * for recommended, @ for stable and x for unstable)
|
|
set /p PROMOTION=
|
|
|
|
set /p MODVERSION=<modversion.txt
|
|
set /p CurrentBuild=<buildnumber.txt
|
|
set /a BUILD_NUMBER=%CurrentBuild%+1
|
|
echo %BUILD_NUMBER% >buildnumber.txt
|
|
|
|
if %PROMOTION%==* (
|
|
echo %MODVERSION% >recommendedversion.txt
|
|
)
|
|
|
|
set FILE_NAME=AssemblyLine_v%MODVERSION%.%BUILD_NUMBER%.jar
|
|
set API_NAME=AssemblyLine_v%MODVERSION%.%BUILD_NUMBER%_api.zip
|
|
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%" "*"
|
|
"..\..\7za.exe" a "..\builds\%BACKUP_NAME%" "*" -pdarkguardsman
|
|
cd ..\
|
|
cd src\
|
|
"..\..\7za.exe" a "..\builds\%BACKUP_NAME%" "*\assemblyline\" -pdarkguardsman
|
|
"..\..\7za.exe" a "..\builds\%API_NAME%" "*\assemblyline\api\"
|
|
cd ..\
|
|
|
|
::UPDATE INFO FILE
|
|
echo %PROMOTION% %FILE_NAME% %API_NAME%>>info.txt
|
|
|
|
::GENERATE FTP Script
|
|
echo open calclavia.com>ftpscript.txt
|
|
echo al@calclavia.com>>ftpscript.txt
|
|
echo VkE4laBa84R9>>ftpscript.txt
|
|
echo binary>>ftpscript.txt
|
|
echo put "recommendedversion.txt">>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 |