mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Port Rust-g DLL and use it for logging (#5394)
This commit is contained in:
committed by
Werner
parent
2bb70110df
commit
f179568e1d
@@ -0,0 +1,19 @@
|
||||
#!/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/tgstation/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
|
||||
Reference in New Issue
Block a user