diff --git a/Include2.bat b/Include2.bat new file mode 100644 index 00000000..14a26fd6 --- /dev/null +++ b/Include2.bat @@ -0,0 +1,4 @@ +@echo off +cd resources +..\..\..\7za.exe a "..\jars\bin\minecraft.jar" "*" +pause \ No newline at end of file diff --git a/buildlocal.bat b/buildlocal.bat new file mode 100644 index 00000000..16717b13 --- /dev/null +++ b/buildlocal.bat @@ -0,0 +1,28 @@ +::ASSEMBLY LINE BUILDER +@echo off +set FILE_NAME=AssemblyLine_test.jar +set API_NAME=AssemblyLine_test_api.zip +set BACKUP_NAME=AssemblyLine_test_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\ +7z a "..\..\builds\%FILE_NAME%" "*" +cd ..\..\ +cd resources\ +7z a "..\builds\%FILE_NAME%" "*" +7z a "..\builds\%BACKUP_NAME%" "*" -pdarkguardsman +cd ..\ +cd src\ +7z a "..\builds\%BACKUP_NAME%" "*\assemblyline\" -pdarkguardsman +7z a "..\builds\%API_NAME%" "*\assemblyline\api\" +cd ..\ + +echo Done building %FILE_NAME% for UE %UE_VERSION% + +pause \ No newline at end of file diff --git a/include.bat b/include.bat new file mode 100644 index 00000000..275db0ab --- /dev/null +++ b/include.bat @@ -0,0 +1,4 @@ +@echo off +cd resources +7z a "..\jars\bin\minecraft.jar" "*" +pause \ No newline at end of file diff --git a/publish.bat b/publish.bat new file mode 100644 index 00000000..07a13922 --- /dev/null +++ b/publish.bat @@ -0,0 +1,56 @@ +::ASSEMBLY LINE BUILDER +@echo off +echo Promotion Type? (Choose * for recommended, @ for stable and x for unstable) +set /p PROMOTION= + +set /p MODVERSION=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\ +7z a "..\..\builds\%FILE_NAME%" "*" +cd ..\..\ +cd resources\ +7z a "..\builds\%FILE_NAME%" "*" +7z a "..\builds\%BACKUP_NAME%" "*" -pdarkguardsman +cd ..\ +cd src\ +7z a "..\builds\%BACKUP_NAME%" "*\assemblyline\" -pdarkguardsman +7z 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 \ No newline at end of file diff --git a/publish_obf.bat b/publish_obf.bat new file mode 100644 index 00000000..9376fa50 --- /dev/null +++ b/publish_obf.bat @@ -0,0 +1,52 @@ +::ASSEMBLY LINE BUILDER +@echo off +echo Promotion Type? (Choose * for recommended, @ for stable and x for unstable) +set /p PROMOTION= + +set /p MODVERSION=