tweaks to auxmos compile on linux

This commit is contained in:
Putnam3145
2021-07-03 03:15:55 -07:00
parent 8d7432b36f
commit 862de42e60
3 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ export BYOND_MINOR=1536
export RUST_G_VERSION=0.4.8
#auxmos git tag
export AUXMOS_VERSION=0.2.0
export AUXMOS_VERSION=v0.2.0
#node version
export NODE_VERSION=12

View File

@@ -58,7 +58,7 @@ fi
#Compile and move auxmos binary to repo root
echo "Deploying auxmos..."
git checkout "$AUXMOS_VERSION"
env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --release --target=i686-unknown-linux-gnu
env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo rustc --release --target=i686-unknown-linux-gnu --features "all_reaction_hooks" -- -C target-cpu=native
mv target/i686-unknown-linux-gnu/release/libauxmos.so ../../../../libauxmos.so
cd ../..

View File

@@ -83,8 +83,8 @@ else
fi
echo "Deploying auxmos..."
git pull origin master
env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --release --target=i686-unknown-linux-gnu
git checkout "$AUXMOS_VERSION"
env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo rustc --release --target=i686-unknown-linux-gnu --features "all_reaction_hooks" -- -C target-cpu=native
mv -f target/i686-unknown-linux-gnu/release/libauxmos.so "$1/libauxmos.so"
cd ..