extract, sort, and reinsert refmap json into final jar

This commit is contained in:
Leijurv 2018-10-11 21:04:07 -07:00
parent 773ad89951
commit 7e4a1169af
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -3,6 +3,10 @@ set -e # this makes the whole script fail immediately if any one of these comman
./gradlew build ./gradlew build
export VERSION=$(cat build.gradle | grep "version '" | cut -d "'" -f 2-2) 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 cd scripts
javac Determinizer.java javac Determinizer.java
java Determinizer ../build/libs/baritone-$VERSION.jar temp.jar java Determinizer ../build/libs/baritone-$VERSION.jar temp.jar