diff --git a/build-aarch64-apple-ios-debug.sh b/build-aarch64-apple-ios-debug.sh index 3a6bf1a..51cbcb0 100755 --- a/build-aarch64-apple-ios-debug.sh +++ b/build-aarch64-apple-ios-debug.sh @@ -1,5 +1,10 @@ #! /bin/sh +if [ "$(uname)" != "Darwin" ]; then + echo "This script is for macOS only." + exit 1 +fi + echo "Setting up the rust environment..." rustup target add aarch64-apple-ios cargo install cbindgen diff --git a/build-aarch64-apple-ios.sh b/build-aarch64-apple-ios.sh index 99010b1..845462f 100755 --- a/build-aarch64-apple-ios.sh +++ b/build-aarch64-apple-ios.sh @@ -1,5 +1,10 @@ #! /bin/sh +if [ "$(uname)" != "Darwin" ]; then + echo "This script is for macOS only." + exit 1 +fi + echo "Setting up the rust environment..." rustup target add aarch64-apple-ios cargo install cbindgen diff --git a/build-android.sh b/build-android.sh index cb6346e..ad4fca3 100755 --- a/build-android.sh +++ b/build-android.sh @@ -1,5 +1,10 @@ #! /bin/bash +if [ "$(uname)" != "Linux" ]; then + echo "This script is for Linux only" + exit 1 +fi + work_dir=$(pwd) ANDROID_API_VERSION=21 diff --git a/build-apple.sh b/build-apple.sh index e353eef..8f27890 100755 --- a/build-apple.sh +++ b/build-apple.sh @@ -1,5 +1,10 @@ #! /bin/sh +if [ "$(uname)" != "Darwin" ]; then + echo "This script is for macOS only." + exit 1 +fi + echo "Setting up the rust environment..." rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios x86_64-apple-darwin aarch64-apple-darwin cargo install cbindgen