-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_linux.sh
executable file
·18 lines (18 loc) · 992 Bytes
/
build_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if [ "$1" = "client" ] && [ "$2" = "release" ]; then
echo "client release"
RUSTFLAGS="--remap-path-prefix $CARGO_HOME=" cargo build --release --target x86_64-unknown-linux-gnu --manifest-path=./client/Cargo.toml
RUSTFLAGS="--remap-path-prefix $CARGO_HOME=" cargo build --release --target x86_64-pc-windows-gnu --manifest-path=./client/Cargo.toml
elif [ "$1" = "client" ]; then
echo "client dev"
cargo run --manifest-path=./client/Cargo.toml
elif [ "$1" = "plugin" ] && [ "$2" = "release" ]; then
echo "plugin release"
RUSTFLAGS="--remap-path-prefix $CARGO_HOME=" cargo build --lib --release --target x86_64-pc-windows-gnu --manifest-path=./plugin/Cargo.toml
dotnet build ./plugin/plugin/Aetherment.csproj -c Release
elif [ "$1" = "plugin" ]; then
echo "plugin dev"
RUSTFLAGS="--remap-path-prefix $CARGO_HOME=" cargo build --lib --target x86_64-pc-windows-gnu --manifest-path=./plugin/Cargo.toml
dotnet build ./plugin/plugin/Aetherment.csproj -c Debug
else
echo "invalid target"
fi