-
Notifications
You must be signed in to change notification settings - Fork 95
/
fast.sh
27 lines (27 loc) · 926 Bytes
/
fast.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
if [ -d src ]; then
rm -rf src
fi
cp -r ../19/src .
for x in src/main/java/mobi/omegacentauri/raspberryjammod/*.java ; do
sed -i -f fix.sed $x
done
rm build/libs/Raspberr*.jar 2> /dev/null
sh gradlew --offline build
# --offline build
rm build/libs/Raspberry*ources.jar 2> /dev/null
mv build/libs/Raspberr* build/libs/RaspberryJamMod.jar 2> /dev/null
mkdir ../build/out 2> /dev/null
mkdir ../build/out/1.12 2> /dev/null
cp build/libs/RaspberryJamMod.jar ../build/out/1.12/
if [ "$1" != "noinstall" ]
then
mkdir $APPDATA/.minecraft/mods
mkdir $APPDATA/.minecraft/mods/1.12
mkdir $APPDATA/.minecraft/mods/1.12.1
mkdir $APPDATA/.minecraft/mods/1.12.2
cp build/libs/RaspberryJamMod.jar $APPDATA/.minecraft/mods/1.12/
cp build/libs/RaspberryJamMod.jar $APPDATA/.minecraft/mods/1.12.1/
cp build/libs/RaspberryJamMod.jar $APPDATA/.minecraft/mods/1.12.2/
else
echo Skipping mod installation.
fi