minecraft-pi-docker/scripts/package.sh

23 lines
375 B
Bash
Raw Normal View History

2020-09-27 00:48:46 +00:00
#!/bin/sh
set -e
# Docker Messes With SetGID
chmod -R g-s debian
# Clean out Directory
rm -rf out
2020-10-03 20:18:53 +00:00
mkdir -p out/deb
2020-09-27 00:48:46 +00:00
# Generate DEB
2020-10-03 20:18:53 +00:00
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'