Created
May 28, 2012 19:27
-
-
Save r1p-zz/2820799 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
#!/bin/sh | |
SRC="./src" | |
BITUSER="r1p" | |
JARS="./jars" | |
CUSTOM_JARS="./custom_bin" | |
##################### | |
bad() { | |
echo -ne "\e[1;31m[-] $1\e[0m\n" | |
}; | |
good() { | |
echo -ne "\e[1;36m[+] $1\e[0m\n" | |
}; | |
info() { | |
echo -ne "\e[1;31m[*] $1\e[0m\n" | |
}; | |
##################### | |
if [ ! -d "$SRC" ] | |
then | |
bad "no $SRC" | |
bad "cloning repo" | |
info "decompiling" | |
./decompile.sh | |
rm -r "$SRC" | |
git clone https://"$BITUSER"@bitbucket.org/imprtat/minecraft.git | |
mv minecraft "$SRC" | |
good "Repo is in $SRC" | |
fi | |
info "recompiling\n" | |
./recompile.sh | |
info "reobfuscating\n" | |
./reobfuscate.sh | |
good "Finished, making jars" | |
unzip "$JARS"/minecraft_server.jar -d "$JARS"/minecraft_server | |
unzip "$JARS"/bin/minecraft.jar -d "$JARS"/bin/minecraft | |
# rm "$JARS"/minecraft_server.jar "$JARS"/bin/minecraft.jar | |
rm -rf "$JARS"/minecraft_server/META-INF "$JARS"/bin/minecraft/META-INF | |
cp -r reobf/minecraft_server/* "$JARS"/minecraft_server/ | |
cp -r reobf/minecraft/* "$JARS"/bin/minecraft/ | |
cd $JARS/minecraft_server/ | |
zip ../../"$CUSTOM_JARS"/minecraft_server.jar * | |
cd ../../"$JARS"/bin/minecraft/ | |
zip ../../../"$CUSTOM_JARS"/minecraft_client.jar * | |
cd ../../../ | |
rm -rf "$JARS"/minecraft_server "$JARS"/bin/minecraft | |
good "At last check: $CUSTOM_JARS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment