diff --git a/scripts/build.sh b/scripts/build.sh index 0acf45ac..891a5a2c 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -107,8 +107,10 @@ main() { portable="" fi - if [[ $platform == "macos" && $arch == "arm64" ]]; then - cross_file="--cross-file resources/macos/macos_arm64.conf" + if [[ $CROSS_ARCH != "" ]]; then + if [[ $platform == "macos" && $CROSS_ARCH == "arm64" ]]; then + cross_file="--cross-file resources/macos/macos_arm64.conf" + fi fi rm -rf "${build_dir}"