mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-19 17:09:07 +00:00
Current C/C++ workflow builds already on macOS 12, so that also macOS versions 10.15 and 11 would be incompatible.
21 lines
533 B
Bash
Executable File
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" "$@"
|