Skip to content

Commit

Permalink
improved installation and setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceToad committed Aug 4, 2011
1 parent d23812c commit 6d0e031
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 9 deletions.
10 changes: 10 additions & 0 deletions forge/install/README.txt
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions forge/install/install.cmd
Original file line number Diff line number Diff line change
@@ -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
22 changes: 15 additions & 7 deletions forge/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion forge/release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion forge/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d0e031

Please sign in to comment.