Created
August 3, 2011 22:56
-
-
Save SpaceManiac/1124062 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "[SPOUT] Copying .minecraft/bin" | |
rm -r jars/* | |
cp -r "$APPDATA/.minecraft/bin" jars/ | |
if [ -d Spoutcraft ]; then | |
echo "[SPOUT] Updating Spoutcraft source" | |
cd Spoutcraft | |
git pull | |
cd .. | |
else | |
echo "[SPOUT] Checking out Spoutcraft source" | |
git clone [email protected]:SpoutDev/Spoutcraft.git Spoutcraft/ | |
fi | |
echo "[SPOUT] Copying configuration" | |
cp -r Spoutcraft/conf/* conf/ | |
echo "[SPOUT] Running cleanup" | |
python runtime/cleanup.py -f | |
echo "[SPOUT] Running decompile" | |
python runtime/decompile.py | |
echo "[SPOUT] Copying source" | |
cp -r Spoutcraft/src/* src/ | |
echo "[SPOUT] Running recompile" | |
python runtime/recompile.py | |
echo "[SPOUT] Running reobfuscate" | |
python runtime/reobfuscate.py | |
echo "[SPOUT] Zipping reobfuscated classes" | |
cd reobf/minecraft/ | |
7z a ../minecraft.zip . | |
cd ../.. | |
echo "[SPOUT] Patching spoutcraft.jar" | |
cp jars/bin/minecraft.jar jars/spoutcraft.jar | |
java -jar zippy.jar reobf/minecraft.zip jars/spoutcraft.jar | |
echo "[SPOUT] Installing spoutcraft.jar" | |
cp jars/spoutcraft.jar "$APPDATA/.spoutcraft/bin/minecraft.jar" | |
echo "[SPOUT] Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment