Files
Yogstation/tools/travis/install_extools.sh
CoffeeKat b4074e94a9 Minor auxmos update (#21053)
* hmm

* this?

* this?

* that?

* latest

* this fixes it?

* hmm

* eeee

* Revert "eeee"

This reverts commit bb7853e3b1.

* Revert "hmm"

This reverts commit 387edcfa48.

* do that

* fix the binary

* lebin

* hmmhmm

* arghhh

* how bout this

* hmm?

* again

* update this

* update shit

* compat

* bump it correctly
2023-12-28 22:50:46 -06:00

25 lines
738 B
Bash

#!/bin/bash
set -euo pipefail
source dependencies.sh
if [ -f "$HOME/.byond/bin/libauxmos.so" ] && grep -Fxq "${AUXMOS_VERSION}" $HOME/.byond/bin/auxmos-version.txt;
then
echo "Using cached directory."
else
echo "Installing Auxmos"
git clone https://github.com/Putnam3145/auxmos
cd ./auxmos
rustup target add i686-unknown-linux-gnu
cargo build --target i686-unknown-linux-gnu --features katmos --release
chmod 755 ./target/i686-unknown-linux-gnu/release/libauxmos.so
mkdir -p ~/.byond/bin
cp ./target/i686-unknown-linux-gnu/release/libauxmos.so ~/.byond/bin/libauxmos.so
echo "$AUXMOS_VERSION" > "$HOME/.byond/bin/auxmos-version.txt"
ldd ~/.byond/bin/libauxmos.so
echo "Finished installing Auxmos"
cd ..
fi