forked from cmss13-devs/cmss13
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
370f7c6
commit 6eb3128
Showing
6 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
source dependencies.sh | ||
|
||
mkdir -p ~/.byond/bin | ||
# We need to compile this for linux ourselves (: | ||
sudo apt-get install gcc-multilib | ||
curl https://sh.rustup.rs -sSfo rustup-init.sh | ||
chmod +x rustup-init.sh | ||
./rustup-init.sh | ||
curl "https://github.com/$AUXTOOLS_REPO/archive/refs/tags/v$AUXTOOLS_VERSION.zip" -o libauxtools.zip | ||
unzip libauxtools.zip | ||
rm libauxtools.zip | ||
cd libauxtools | ||
rustup target add i686-unknown-linux-gnu | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install build-essential g++-multilib libc6-i386 libstdc++6:i386 | ||
export PKG_CONFIG_ALLOW_CROSS=1 | ||
cargo build --release --target i686-unknown-linux-gnu | ||
chmod +x ~/.byond/bin/libauxtools/target/i686-unknown-linux-gnu/release/libauxtools.so | ||
ldd ~/.byond/bin/libauxtools/target/i686-unknown-linux-gnu/release/libauxtools.so |