-
Notifications
You must be signed in to change notification settings - Fork 264
Build script for self-contained Mac .app #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This build setup seems reasonable enough, although I cannot personally verify it. For finding SDL in /extern, try setting search paths from CMakeLists.txt, instead of adding it in find files. I suggest unification with Windows - use /Libs instead of /extern. About SDL mixer on macOS. |
Done.
Done.
They need to provide a Sound Font 2 file like this and set the
Yes, and homebrew installs |
|
Thank you, it looks much better now. Merged. It is good to hear that the official mixer release is functional MIDI-wise. |
This pull request adds CMake settings and metadata to build a Mac app with frameworks included so that it can be distributed without installing Homebrew, SDL, and Xcode tools on the target Mac. I'm not really familiar with CMake but those setting that I looked up in the documentation worked for me.
The build script generates a .app and packages it in a DMG file as it is usually done on Mac. It uses special build of SDL Mixer with MIDI support sourced here libsdl-org/SDL_mixer#419 (comment) otherwise music won't work. A sample GitHub workflow is included too.
Users need to provide assets and copy them in the
SpaceCadetPinball.app/Contents/Resources/folder.I created an icon using AI upscaler similarly to what has been done on #180, fixed artifacts, and adapted to a Big Sur template. Here's what a smaller version of it looks like by the way:
