Skip to content

Commit

Permalink
Apple: Mount the SDL3 macOS DMG to extract the dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored Oct 31, 2024
1 parent 01d8be0 commit 109ccf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-fnalibs-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ mkdir -p fnalibs-apple
cp fnalibs-apple.README fnalibs-apple/README.txt

mkdir -p fnalibs-apple/osx
# TODO: Extract the dmg for SDL, copy to osx/, install_name_tool
hdiutil attach SDL-macos-framework/dist/SDL3-3.1.5-macOS.dmg
cp /Volumes/SDL3\ 3.1.5/SDL3.framework/SDL3 fnalibs-apple-osx/libSDL3.0.dylib
install_name_tool -id "@rpath/libSDL3.0.dylib" fnalibs-apple-osx/libSDL3.0.dylib
hdiutil detach /Volumes/SDL3\ 3.1.5
mv FAudio-SDL3-osx/libFAudio.0.dylib fnalibs-apple/osx/
mv FNA3D-SDL3-osx/libFNA3D.0.dylib fnalibs-apple/osx/
mv Theorafile-osx/libtheorafile.dylib fnalibs-apple/osx/
Expand Down

0 comments on commit 109ccf5

Please sign in to comment.