#DEPENDENCIES
#Windows: JDK17, Maven, GitBash, 7zip, MinGW, GCC, Make
#Linux:   JDK17, Maven, git, bash, unzip, GCC, Make

#completely clear build directory
rm -rf ./build
#build directory structure
mkdir build
mkdir ./build/assets
#compile project and copy into build dir
mvn package
cp ./target/Renderer-0.1.jar ./build/engine.jar
#build launcher
cd ./launcher/
make clean
make build
cd ..
#copy launcher, jdk, and assets into build dir
mv ./launcher/launcher.exe ./build/
unzip ./launcher/jdk.zip -d ./build/
cp -r ./assets/* ./build/assets/