#!/bin/bash ./InstallDeps.sh set -e set -x #load dep exports #need to switch to game dir for Dockerfile weirdness original_dir=$PWD cd "$1" . dependencies.sh cd "$original_dir" echo "Deploying Rustlibs..." cd $1/rust env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --release --features all --target=i686-unknown-linux-gnu mv target/i686-unknown-linux-gnu/release/librustlibs.so "$1/librustlibs.so" cd ..