From ebe6cd6482a5ec79b50dd7926dfd1322930adbca Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Fri, 7 Apr 2023 02:09:31 -0300 Subject: [PATCH] build script --- build.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 199ff0e..dbf8c02 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,10 @@ -cargo build --release --target=aarch64-apple-darwin -cargo build --release --target=x86_64-unknown-linux-gnu -cargo build --release --target=x86_64-pc-windows-msvc +if [ "$1" = "macos-arm" ]; then + rustup target add aarch64-apple-darwin + cargo build --release --target=aarch64-apple-darwin +elif [ "$1" = "linux" ]; then + rustup target add x86_64-unknown-linux-musl + cargo build --release --target=x86_64-unknown-linux-musl +elif [ "$1" = "windows" ]; then + rustup target add x86_64-pc-windows-msvc + cargo build --release --target=x86_64-pc-windows-msvc +fi \ No newline at end of file