minecraft-pi-reborn/debian/client/virgl/usr/lib/minecraft-pi/run.sh

19 lines
230 B
Bash
Raw Normal View History

2020-10-16 19:39:04 +00:00
#!/bin/sh
set -e
# Enable VirGL
export MCPI_MODE=virgl
# Start VirGL
virgl_test_server &
VIRGL_PID="$!"
# Launch Minecraft
${DOCKER_COMPOSE} run --rm minecraft-pi || :
RET="$?"
# Kill VirGL
kill "${VIRGL_PID}"
exit "${RET}"