mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
20 lines
435 B
Bash
20 lines
435 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [ -f $HOME/rust_g-$RUST_G_VERSION/rust_g ]; then
|
|
echo "rust_g already cached."
|
|
exit 0
|
|
fi
|
|
|
|
set -e
|
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host i686-unknown-linux-gnu
|
|
|
|
source ~/.profile
|
|
git clone --branch $RUST_G_VERSION https://github.com/Aurorastation/rust-g
|
|
|
|
cd rust-g
|
|
cargo build --release
|
|
|
|
mkdir -p ~/.byond/bin
|
|
cp $PWD/target/release/librust_g.so $HOME/rust_g-$RUST_G_VERSION/rust_g
|