mac build changes
This commit is contained in:
15
build.sh
15
build.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user