-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
33 lines (26 loc) · 974 Bytes
/
build.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
28
29
30
31
32
33
#!/bin/bash
# Check if both files exist
if [ -e "./libMujina/InjectableJar/InjectableJar.jar" ] && [ -e "./libMujina/InjectableJar/InjectableJar.jar.hpp" ]; then
# If both files exist, delete them
rm "./libMujina/InjectableJar/InjectableJar.jar" "./libMujina/InjectableJar/InjectableJar.jar.hpp"
echo "Deleting files from last build..."
else
# If any of the files do not exist, print a message
echo "Starting fresh build..."
fi
cd ./libMujina/InjectableJar/InjectableJar
echo "Cd'd in to $PWD"
echo "Starting java build..."
ant
echo "Remapping jar..."
java -jar "tiny-remapper-0.10.1+local-fat.jar" "build/libs/InjectableJar.jar" "../InjectableJar.jar" "yarn-tiny-1.20.4+build.local" named intermediary "libs" "libs/mclibs"
cd ..
echo "Cd'd in to $PWD"
./ignore_File2Hex
echo "Running ignore_File2Hex..."
cd ../..
echo "Cd'd in to $PWD"
echo "Starting CMake..."
cmake -B ./Build
cmake --build Build --target libMujina --config Release
echo "done"