mirror of https://github.com/ksherlock/ample.git
script to download SDL2.Framework
This commit is contained in:
parent
9f38f2972a
commit
e7a670efd3
|
@ -0,0 +1,16 @@
|
|||
|
||||
#!/bin/sh
|
||||
|
||||
DMG=SDL2-2.0.14.dmg
|
||||
URL=https://www.libsdl.org/release/SDL2-2.0.14.dmg
|
||||
FRAMEWORK=SDL2.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
|
||||
|
||||
# cp -r /sdl_disk_image/$FRAMEWORK ./
|
||||
ditto /Volumes/sdl_disk_image/$FRAMEWORK $FRAMEWORK
|
||||
hdiutil detach /Volumes/sdl_disk_image
|
Loading…
Reference in New Issue