Files
UltraGrid/data/scripts/macos-wrapper
Martin Pulec 5df57da6ba macos-wrapper: change version from 10.15 to 12
Current C/C++ workflow builds already on macOS 12, so that also macOS
versions 10.15 and 11 would be incompatible.
2024-05-09 09:39:27 +02:00

21 lines
533 B
Bash
Executable File

#!/bin/sh -eu
MACOS_VER_MAJOR=$(uname -r | cut -f 1 -d .)
MSG="Please use an alternative build for macOS older than 12, available at:
https://github.com/CESNET/UltraGrid/releases/download/continuous/UltraGrid-nightly-alt.dmg"
if [ "$MACOS_VER_MAJOR" -lt 21 ]; then
BASENAME=$(basename "$0")
if [ "$BASENAME" = uv-qt ]; then
osascript -e "tell application \"SystemUIServer\"
display dialog \"$MSG\"
end"
else
echo "$MSG" >&2
fi
exit 1
fi
exec "$0-real" "$@"