minecraft-pi-reborn/scripts/package.sh

21 lines
398 B
Bash
Raw Normal View History

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