Skip to content

Commit 4d6ceb2

Browse files
committed
macos-wrapper: ensure os release according to arch
x86_64 now builds on macOS 13 while arm64 on macOS 14
1 parent 626fdc6 commit 4d6ceb2

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

data/scripts/macos-wrapper

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,24 @@
22

33
MACOS_VER_MAJOR=$(uname -r | cut -f 1 -d .)
44

5-
MSG="Please use an alternative build for macOS older than 13, available at:
5+
req_macos_arm64=14
6+
req_darwin_arm64=23
7+
8+
req_macos_x86_64=13
9+
req_darwin_x86_64=22
10+
11+
if [ "$(uname -m)" = arm64 ]; then
12+
req_macos=$req_macos_arm64
13+
req_darwin=$req_darwin_arm64
14+
else
15+
req_macos=$req_macos_x86_64
16+
req_darwin=$req_darwin_x86_64
17+
fi
18+
19+
MSG="Please use an alternative build for macOS older than ${req_macos:?}, available at:
620
https://github.com/CESNET/UltraGrid/releases/download/continuous/UltraGrid-nightly-alt.dmg"
721

8-
if [ "$MACOS_VER_MAJOR" -lt 22 ]; then
22+
if [ "$MACOS_VER_MAJOR" -lt "${req_darwin:?}" ]; then
923
BASENAME=$(basename "$0")
1024
if [ "$BASENAME" = uv-qt ]; then
1125
osascript -e "tell application \"SystemUIServer\"

0 commit comments

Comments
 (0)