From 7e4a1169af54a24668a6e5c20873d051f1c0e12f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Thu, 11 Oct 2018 21:04:07 -0700 Subject: [PATCH] extract, sort, and reinsert refmap json into final jar --- scripts/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 6bdb6e5e..7249d14d 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -3,6 +3,10 @@ set -e # this makes the whole script fail immediately if any one of these comman ./gradlew build export VERSION=$(cat build.gradle | grep "version '" | cut -d "'" -f 2-2) +unzip -p build/libs/baritone-$VERSION.jar "mixins.baritone.refmap.json" | jq -S -c -M '.' > mixins.baritone.refmap.json +zip -u build/libs/baritone-$VERSION.jar mixins.baritone.refmap.json +rm mixins.baritone.refmap.json + cd scripts javac Determinizer.java java Determinizer ../build/libs/baritone-$VERSION.jar temp.jar