From 2ca813f209d0704ffcb124b28300dcbfc7e56b70 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 13 Sep 2024 13:47:47 -0700 Subject: [PATCH] Update Mac OS install --- src/gam-install.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/gam-install.sh b/src/gam-install.sh index b3d537ca..f42637f5 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -141,7 +141,25 @@ case $gamos in ;; [Mm]ac[Oo][sS]|[Dd]arwin) gamos="macos" - gamfile="macos-universal2.tar.xz" + case $gamarch in + x86_64) + fullversion=$(sw_vers -productVersion) + osversion=${fullversion:0:2} + case ${osversion:0:2} in + 11|12|13|14) + gamfile="macos-x86_64.tar.xz";; + *) + echo_red "Sorry, this version ($fullversion) of MacOS is not supported. Exiting." + exit + ;; + esac + ;; + arm|arm64|aarch64) + gamfile="macos-aarch64.tar.xz";; + *) + echo_red "ERROR: this installer currently only supports x86_64 and arm64 MacOS. Looks like you're running on $gamarch. Exiting." + exit + esac ;; MINGW64_NT*) gamos="windows"