2011-10-09 04:21:29 +00:00
|
|
|
echo off
|
|
|
|
|
|
|
|
echo MinecraftForge Windows Setup Program
|
|
|
|
echo:
|
|
|
|
|
|
|
|
pushd .. >nul
|
|
|
|
|
2011-12-11 07:04:21 +00:00
|
|
|
xcopy /Y /E /I forge\conf\* conf
|
|
|
|
|
|
|
|
if exist runtime\bin\fernflower.jar move runtime\bin\fernflower.jar runtime\bin\fernflower.jar-backup
|
|
|
|
|
2011-10-09 04:21:29 +00:00
|
|
|
cmd /C cleanup.bat
|
|
|
|
cmd /C decompile.bat
|
|
|
|
|
2011-12-11 07:04:21 +00:00
|
|
|
if exist runtime\bin\fernflower.jar-backup move runtime\bin\fernflower.jar-backup runtime\bin\fernflower.jar
|
|
|
|
|
2011-10-09 04:21:29 +00:00
|
|
|
pushd src >nul
|
2011-12-11 07:37:54 +00:00
|
|
|
|
|
|
|
if exist ..\jars\bin\minecraft.jar (
|
|
|
|
del minecraft\net\minecraft\src\MLProp.java
|
|
|
|
copy ..\forge\MLProp.java minecraft\net\minecraft\src\MLProp.java
|
|
|
|
|
|
|
|
for /f "delims=" %%a in ('dir /a -d /b /S ..\forge\patches\minecraft') do (
|
|
|
|
pushd "%%a" 2>nul
|
|
|
|
if errorlevel 1 (
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py "%%a" "%%a"
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 -i "%%a"
|
|
|
|
) else popd
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if exist ..\jars\minecraft_server.jar (
|
|
|
|
del minecraft_server\net\minecraft\src\MLProp.java
|
|
|
|
copy ..\forge\MLProp.java minecraft_server\net\minecraft\src\MLProp.java
|
|
|
|
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py ../forge/modLoaderMP.patch ../forge/modLoaderMP.patch
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 -i ../forge/modLoaderMP.patch
|
|
|
|
|
|
|
|
for /f "delims=" %%a in ('dir /a -d /b /S ..\forge\patches\minecraft_server') do (
|
|
|
|
pushd "%%a" 2>nul
|
|
|
|
if errorlevel 1 (
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py "%%a" "%%a"
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 -i "%%a"
|
|
|
|
) else popd
|
|
|
|
)
|
|
|
|
|
2011-10-09 04:21:29 +00:00
|
|
|
)
|
|
|
|
popd >nul
|
|
|
|
|
|
|
|
xcopy /Y /E forge\src\* src
|
|
|
|
|
2011-12-11 07:04:21 +00:00
|
|
|
cmd /C updatemcp.bat
|
|
|
|
cmd /C updatenames.bat
|
2011-10-09 04:21:29 +00:00
|
|
|
cmd /C updatemd5.bat
|