Patched the installer again.
This commit is contained in:
parent
1c11f0eeb0
commit
d2878faa33
1 changed files with 5 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
||||||
@echo off
|
@echo off
|
||||||
echo Minecraft Forge Install and Build Script v1.2
|
echo Minecraft Forge Install and Build Script v1.3
|
||||||
echo -Searching for components...
|
echo -Searching for components...
|
||||||
set MCP=ERROR!
|
set MCP=ERROR!
|
||||||
set HOME=ERROR!
|
set HOME=ERROR!
|
||||||
if /i exist "%~dp0\%~nx0" (set MCP="%~dp0.."&& set HOME="%~dp0")
|
if /i exist "%~dp0\%~nx0" (set MCP="%~dp0.."&& set HOME="%~dp0")
|
||||||
if /i exist "%~dp0..\install\%~nx0" (set MCP="%~dp0..\.."&& set HOME="%~dp0..")
|
if /i exist "%~dp0\install\%~nx0" (set MCP="%~dp0..\.."&& set HOME="%~dp0..")
|
||||||
if /i exist "%~dp0\forge\%~nx0" (set MCP="%~dp0" && set HOME="%~dp0\forge")
|
if /i exist "%~dp0\forge\%~nx0" (set MCP="%~dp0" && set HOME="%~dp0\forge")
|
||||||
if %MCP%==ERROR! (echo -Error: Forge Not Detected! && echo -Please be sure you've installed it properly.)
|
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.)
|
if %HOME%==ERROR! (echo -Error: MCP Not Detected! && echo -Please be sure you've installed it - and Forge - properly.)
|
||||||
|
@ -18,9 +18,9 @@ set HOME=%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 && cmd /c "runtime\bin\python\python_mcp runtime\decompile.py %*" && popd) else (echo -Decompiled source detected)
|
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 && cmd /c "runtime\bin\python\python_mcp runtime\decompile.py %*" && popd) else (echo -Decompiled source detected)
|
||||||
pushd %MCP%\src
|
pushd %MCP%\src
|
||||||
echo -Applying forge to the sourcetree...
|
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_client\src\net\*" "%MCP%\src\minecraft\net"
|
||||||
xcopy /Y /E /G /Q "%HOME%"\forge_common\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 D | xcopy /Y /E /G /Q "%HOME%\forge_common\net\*" "%MCP%\src\minecraft_server\net"
|
||||||
echo -NEW SESSION >> forgepatch.log
|
echo -NEW SESSION >> forgepatch.log
|
||||||
"%MCP%\runtime\bin\python\python_mcp" "%HOME%\lfcr.py" "%HOME%\minecraft.patch" "%HOME%\minecraft-win.patch" >> 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...
|
echo -Patching necessary source files for forge...
|
||||||
|
@ -30,5 +30,3 @@ echo -Forge ready for use, recompiling...
|
||||||
pushd %MCP%
|
pushd %MCP%
|
||||||
cmd /c "runtime\bin\python\python_mcp runtime\recompile.py %*"
|
cmd /c "runtime\bin\python\python_mcp runtime\recompile.py %*"
|
||||||
popd
|
popd
|
||||||
echo -Recompilation complete!
|
|
||||||
echo.
|
|
||||||
|
|
Loading…
Reference in a new issue