2020-09-26 20:48:46 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Docker Messes With SetGID
|
|
|
|
chmod -R g-s debian
|
|
|
|
|
|
|
|
# Clean out Directory
|
|
|
|
rm -rf out
|
2020-10-03 16:18:53 -04:00
|
|
|
mkdir -p out/deb
|
2020-09-26 20:48:46 -04:00
|
|
|
|
2020-10-16 15:39:04 -04:00
|
|
|
# Package Client DEBs
|
|
|
|
package_client() {
|
|
|
|
rm -rf debian/tmp
|
|
|
|
rsync -r debian/client/common/ debian/tmp
|
|
|
|
rsync -r "debian/client/$1/" debian/tmp
|
|
|
|
dpkg -b debian/tmp out/deb
|
|
|
|
rm -rf debian/tmp
|
|
|
|
}
|
|
|
|
package_client virgl
|
|
|
|
package_client native
|
|
|
|
|
|
|
|
# Package Server DEB
|
2020-10-10 19:02:13 -04:00
|
|
|
dpkg -b debian/server out/deb
|
2020-10-03 16:18:53 -04:00
|
|
|
|
|
|
|
# Export Libraries
|
|
|
|
mkdir -p out/lib
|
|
|
|
|
|
|
|
# Copy Headers
|
|
|
|
cp -r mods/include out/lib/include
|
|
|
|
|
|
|
|
# Copy Shared Library
|
2020-10-10 19:02:13 -04:00
|
|
|
IMG_ID="$(docker create thebrokenrail/minecraft-pi:client)"
|
2020-10-14 22:39:30 -04:00
|
|
|
docker cp "${IMG_ID}":/app/minecraft-pi/mods/. ./out/lib/. || :
|
|
|
|
RET="$?"
|
2020-10-06 11:08:10 -04:00
|
|
|
docker rm -v "${IMG_ID}"
|
2020-10-14 22:39:30 -04:00
|
|
|
exit "${RET}"
|