Skip to content

Instantly share code, notes, and snippets.

@furlmc
Created August 22, 2013 21:28
Show Gist options
  • Save furlmc/6313024 to your computer and use it in GitHub Desktop.
Save furlmc/6313024 to your computer and use it in GitHub Desktop.
lol what is going on
set -e
shopt -s nullglob
# Copy in source from git
cp -r -t src/minecraft ../../furlmod/furl
# Put dev jars in lib
for LIB in lib-noreobf/*; do
cp -t lib "$LIB"
done
./recompile.sh
# Dev jars need to be their obfuscated counterparts for reobf
for LIB in lib-noreobf/*; do
TARGET=`echo $LIB | sed 's/-noreobf//'`;
rm "$TARGET"
done
for LIB in lib-reobf/*; do
cp -t lib "$LIB"
done
./reobfuscate.sh
# Cleanup
for LIB in lib-reobf/*; do
TARGET=`echo $LIB | sed 's/-reobf//'`;
rm "$TARGET"
done
# Golang jar build script
./jarbuilder
cp -t /c/multimc/instances/nodrm-v4/minecraft/mods dist/FurlMod.zip
echo Build completed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment