Created
December 2, 2012 18:09
-
-
Save SanAndreaP/4190223 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
color 0f | |
echo ===================================================================== | |
echo SanAndreasPs JAR packager for Minecraft Forge modifications | |
echo ===================================================================== | |
set /p mcppath=<mcp.txt | |
:Programm | |
set /p modfolder="Enter mod foldername: " | |
set /p jarfilename="Enter jar filename: " | |
cls | |
echo ----------------------------------------------------- | |
echo Recompiling Minecraft | |
echo ----------------------------------------------------- | |
cd %mcppath% | |
color 0a | |
runtime\bin\python\python_mcp runtime\recompile.py %* | |
pause | |
cls | |
echo ----------------------------------------------------- | |
echo Reobfuscating Minecraft | |
echo ----------------------------------------------------- | |
color 0b | |
runtime\bin\python\python_mcp runtime\reobfuscate.py %* | |
pause | |
cls | |
color 0f | |
echo ----------------------------------------------------- | |
echo Packing jar | |
echo ----------------------------------------------------- | |
cd /d %0\.. | |
del /F /S /Q ".\jarfile\*" | |
del /F /S /Q ".\obfFiles\*" | |
rmdir /S /Q ".\obfFiles\*" | |
cd ".\obfFiles" | |
xcopy O:\Dropbox\SAP_MyMods_II\Source\common\SanAndreasP\mods\%modfolder%\* .\SanAndreasP\mods\%modfolder%\ /s /e /c /i /y | |
xcopy O:\Dropbox\SAP_MyMods_II\Source\src\SanAndreasP\mods\%modfolder%\* .\SanAndreasP\mods\%modfolder%\ /s /e /c /i /y | |
del /F /S /Q ".\*.java" | |
xcopy %mcppath%\reobf\minecraft\SanAndreasP\mods\%modfolder%\* .\SanAndreasP\mods\%modfolder%\ /s /e /c /i /y | |
cd "..\stuff" | |
jar cvfM "..\jarfile\%jarfilename%.jar" "main.class" | |
jar uvfM "..\jarfile\%jarfilename%.jar" "DO NOT UNZIP THIS" | |
cd "..\obfFiles" | |
jar uvfM "..\jarfile\%jarfilename%.jar" * | |
cd "..\modfiles" | |
jar uvfm "..\jarfile\%jarfilename%.jar" "..\stuff\manifest.txt" * | |
cd .. | |
echo --------------------------- | |
set /p confirm=" Continue? (Y/N) " | |
echo --------------------------- | |
IF %confirm%==Y GOTO Programm | |
IF %confirm%==y GOTO Programm | |
IF %confirm%==Yes GOTO Programm | |
IF %confirm%==yes GOTO Programm | |
IF %confirm%==YES GOTO Programm | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment