minecraft-pi-docker/scripts/build-mods.sh
2020-09-25 12:43:53 -04:00

20 lines
284 B
Bash
Executable File

#!/bin/sh
set -e
cd mods
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchain.cmake ..
make -j$(nproc)
cd ../../
mkdir minecraft-pi/mods
cp mods/build/lib*.so minecraft-pi/mods
cp mods/build/core/lib*.so minecraft-pi
cp mods/build/core/launcher minecraft-pi