mac build changes

This commit is contained in:
dan_s
2026-02-25 13:33:52 -06:00
parent 4d001ed7de
commit f5c8e02f24
3 changed files with 56 additions and 12 deletions

View File

@@ -52,6 +52,21 @@ if [[ "${1:-}" == "--linux-release" ]]; then
exit $?
fi
# Check for --mac-release flag for macOS release build (must be run on macOS)
if [[ "${1:-}" == "--mac-release" ]]; then
check_and_clean_target "macos-release"
shift
if [[ "$OSTYPE" != "darwin"* ]]; then
echo "ERROR: --mac-release must be run on a native macOS system."
echo " Copy this repo to a Mac and run: ./build.sh --mac-release $*"
exit 1
fi
echo "Building macOS release natively..."
./util/build-mac.sh "$@"
echo "macOS release build complete."
exit $?
fi
# run correct build script for detected OS
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
check_and_clean_target "linux"