Uploaded new install file.
This commit is contained in:
parent
8d9e0879d8
commit
08b0913f04
1 changed files with 26 additions and 8 deletions
|
@ -1,8 +1,26 @@
|
||||||
set HOME=%~dps0
|
@echo off
|
||||||
set MCP=%HOME%..
|
echo Minecraft Forge Build Script v1.1
|
||||||
xcopy /Y /E src\* ..\src
|
echo -Searching for components...
|
||||||
|
set MCP=ERROR!
|
||||||
cd %MCP%\src
|
set HOME=ERROR!
|
||||||
%MCP%\runtime\bin\python\python_mcp %HOME%\lfcr.py %HOME%\minecraft.patch %HOME%\minecraft-win.patch
|
if /i exist %~dp0\%~nx0 (set MCP=%~dp0..&& set HOME=%~dp0)
|
||||||
%MCP%\runtime\bin\applydiff.exe -uf -p2 < %HOME%\minecraft-win.patch
|
if /i exist %~dp0\forge\%~nx0 (set MCP=%~dp0&& set HOME=%~dp0\forge)
|
||||||
pause
|
if %MCP%==ERROR! (echo -Error: Forge Not Detected! && echo -Please be sure you've installed it properly.)
|
||||||
|
if %HOME%==ERROR! (echo -Error: MCP Not Detected! && echo -Please be sure you've installed it - and Forge - properly.)
|
||||||
|
echo -MCP detected in %MCP%
|
||||||
|
echo -Forge detected in %HOME%
|
||||||
|
if /i not exist %MCP%\src\minecraft\net\minecraft\client\minecraft.java (echo -Decompiled source not detected, decompiling minecraft.jar... && pushd %MCP% && echo -NEW SESSION >> compile.log && decompile >> compile.log && popd) else (echo -Decompiled source detected)
|
||||||
|
pushd %MCP%\src
|
||||||
|
echo -Applying forge to the sourcetree...
|
||||||
|
xcopy /Y /E /G /Q %HOME%\forge_client\src\net\* %MCP%\src\minecraft\net
|
||||||
|
xcopy /Y /E /G /Q %HOME%\forge_common\net\* %MCP%\src\minecraft\net
|
||||||
|
echo D | xcopy /Y /E /G /Q %HOME%\forge_common\net\* %MCP%\src\minecraft_server\net
|
||||||
|
echo -NEW SESSION >> forgepatch.log
|
||||||
|
%MCP%\runtime\bin\python\python_mcp %HOME%\lfcr.py %HOME%\minecraft.patch %HOME%\minecraft-win.patch >> forgepatch.log
|
||||||
|
echo -Patching necessary source files for forge...
|
||||||
|
%MCP%\runtime\bin\applydiff.exe -uf -p2 < %HOME%\minecraft-win.patch >> forgepatch.log
|
||||||
|
popd
|
||||||
|
echo -Forge ready for use, recompiling...
|
||||||
|
pushd %MCP%
|
||||||
|
cmd /c recompile.bat
|
||||||
|
popd
|
||||||
|
|
Loading…
Reference in a new issue