21 lines
398 B
Bash
Raw Normal View History

2020-09-26 20:48:46 -04:00
#!/bin/sh
set -e
# 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
# Build
2023-11-24 18:37:08 -05:00
./scripts/setup.sh "${MODE}" "${ARCH}" -DMCPI_IS_APPIMAGE_BUILD=ON
./scripts/build.sh "${MODE}" "${ARCH}"
# 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