mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-19 22:09:13 +00:00
21 lines
536 B
Bash
Executable File
21 lines
536 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 10.15, available at:
|
|
https://github.com/CESNET/UltraGrid/releases/download/continuous/UltraGrid-nightly-alt.dmg"
|
|
|
|
if [ "$MACOS_VER_MAJOR" -lt 19 ]; 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" "$@"
|