2020-09-26 20:48:46 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-07-04 16:44:00 -04:00
|
|
|
# Prepare
|
|
|
|
NAME='minecraft-pi-reborn'
|
2023-11-24 18:37:08 -05:00
|
|
|
MODE="$(echo "$1" | tr '[:upper:]' '[:lower:]')"
|
|
|
|
ARCH="$(echo "$2" | tr '[:upper:]' '[:lower:]')"
|
2021-06-17 17:32:24 -04:00
|
|
|
|
2022-07-04 16:44:00 -04:00
|
|
|
# Build
|
2023-11-24 18:37:08 -05:00
|
|
|
./scripts/setup.sh "${MODE}" "${ARCH}" -DMCPI_IS_APPIMAGE_BUILD=ON
|
|
|
|
./scripts/build.sh "${MODE}" "${ARCH}"
|
2022-07-04 16:44:00 -04:00
|
|
|
|
|
|
|
# Package
|
2024-01-20 02:10:18 -05:00
|
|
|
cd "build/${MODE}-${ARCH}"
|
|
|
|
rm -f *.AppImage*
|
|
|
|
cmake --build . --target package
|
2022-03-09 21:23:41 -05:00
|
|
|
|
2024-01-20 02:10:18 -05:00
|
|
|
# Copy Output
|
|
|
|
cp *.AppImage* ../../out
|