minecraft-pi-docker/scripts/package.sh
2020-10-03 16:18:53 -04:00

23 lines
375 B
Bash
Executable File

#!/bin/sh
set -e
# Docker Messes With SetGID
chmod -R g-s debian
# Clean out Directory
rm -rf out
mkdir -p out/deb
# Generate DEB
dpkg -b debian out/deb
# Export Libraries
mkdir -p out/lib
# Copy Headers
cp -r mods/include out/lib/include
# Copy Shared Library
docker run -v "$(pwd)/out/lib:/out" --entrypoint sh thebrokenrail/minecraft-pi -c 'cp ./mods/lib*.so /out'