minecraft-pi-reborn/example-mods/build.sh

26 lines
351 B
Bash
Raw Normal View History

2024-02-04 05:36:58 +00:00
#!/bin/sh
set -e
# Create Output Directory
ROOT="$(pwd)"
2024-02-04 05:43:25 +00:00
OUT="${ROOT}/out"
2024-02-04 05:36:58 +00:00
rm -rf "${OUT}"
mkdir -p "${OUT}"
# Build
2024-02-04 05:43:25 +00:00
build() {
cd "${ROOT}/$1"
2024-02-04 05:36:58 +00:00
# Build
rm -rf build
mkdir build
cd build
cmake -GNinja ..
cmake --build .
# Copy Result
cp lib*.so "${OUT}"
2024-02-04 05:43:25 +00:00
}
build chat-commands
build expanded-creative
build recipes