23 lines
375 B
Bash
Executable File
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'
|