Files
UltraGrid/data/scripts/macos-wrapper
Martin Pulec e1c747e966 CI mac: use macos-13
macOS 12 is no longer supported and as Homebrew has a policy, that it
compiles packages from sources on unsupported macOSes, it is needed to
switch to newer macOS to keep reasonable build times.
2024-09-19 16:18:59 +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 13, available at:
https://github.com/CESNET/UltraGrid/releases/download/continuous/UltraGrid-nightly-alt.dmg"
if [ "$MACOS_VER_MAJOR" -lt 22 ]; 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" "$@"