MacOS mame now uses the SDL 3 framework

This commit is contained in:
Kelvin Sherlock
2026-02-28 20:39:13 -05:00
parent 2b9b11296f
commit e1c8e6eeef
3 changed files with 24 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
VERSION=3.4.2
DMG=SDL3-${VERSION}.dmg
URL=https://www.libsdl.org/release/SDL3-${VERSION}.dmg
FRAMEWORK=SDL3.framework
if [ -e $FRAMEWORK ] ; then exit 0 ; fi
if [ ! -e $DMG ] ; then curl -OL $URL ; fi
hdiutil attach $DMG -noverify -nobrowse -mountpoint /Volumes/sdl_disk_image
ditto /Volumes/sdl_disk_image/SDL3.xcframework/macos-arm64_x86_64/$FRAMEWORK $FRAMEWORK
hdiutil detach /Volumes/sdl_disk_image