improved installation and setup scripts

This commit is contained in:
Space Toad 2011-08-04 06:10:38 +00:00
parent d23812cb4c
commit 6d0e031989
5 changed files with 35 additions and 9 deletions

10
forge/install/README.txt Executable file
View file

@ -0,0 +1,10 @@
*** HOW TO INSTALL ***
The forge directory should have been uncompacted right under your MCP root
directory.
You should a a fresh minecraft and minecraft_server.jar freshly decompiled
with ModLoader and ModLoaderMP.
Just run the script install.bat. It will copy the Minecraft Forge source on your
src directory, and modify the Minecraft source files.

8
forge/install/install.cmd Executable file
View file

@ -0,0 +1,8 @@
set HOME=%CD%
set MCP=%HOME%\..
xcopy /Y /E src\* ..\src
cd %MCP%\src
%MCP%\runtime\bin\python\python_mcp %HOME%\lfcr.py %HOME%\minecraft.patch %HOME%\minecraft-win.patch
%MCP%\runtime\bin\applydiff.exe -uf -p2 < %HOME%\minecraft-win.patch
pause

View file

@ -46,18 +46,26 @@ rm -rf reobf
cd $build_dir
mkdir forge
cd forge
mkdir src
mkdir src/minecraft
mkdir src/minecraft_server
cp -r forge_client/src/* src/minecraft
cp -r forge_server/src/* src/minecraft_server
cp -r forge_common/* src/minecraft
cp -r forge_common/* src/minecraft_server
cp minecraft.patch src
cp -r ../forge_client/src/* src/minecraft
cp -r ../forge_server/src/* src/minecraft_server
cp -r ../forge_common/* src/minecraft
cp -r ../forge_common/* src/minecraft_server
cp ../minecraft.patch .
cp ../lfcr.py .
cp ../install/install.cmd .
cp ../install/README.txt .
cp -r ../doc .
cd src
remove_svn .
cd ..
zip -r $dir/minecraftforge-src-$version.zip src doc
rm -rf src
cd ..
zip -r $dir/minecraftforge-src-$version.zip forge
rm -rf forge

View file

@ -8,6 +8,6 @@ set PATH=E:\cygwin\bin;%PATH%
cd forge
sh package.sh 1.0.0
sh package.sh 1.0.3
pause

View file

@ -9,7 +9,7 @@ rmdir /S /Q src_work
cmd /C decompile.bat
cd src
..\runtime\bin\python\python_mcp ..\forge\lfcr.py ..\forge\modLoaderMP.patch ..\forge\modLoaderMP-win.patch
..\runtime\bin\applydiff.exe -uf -p2 < ..\forge\modLoaderMP.patch
..\runtime\bin\applydiff.exe -uf -p2 < ..\forge\modLoaderMP-win.patch
cd ..
cmd /C recompile.bat
cmd /C updatemd5.bat