Continuation of #31
We already have snapshots builds for Linux and Windows, macOS is the last remaining mainstream OS we want to add right now.
We need some macOS dev, who could implement packaging job in our CI and test if generated packages work correctly.
OK, so I was working on this issue lately, and (as suspected), packaging for macOS is "a bit" more complicated than simply "Create and App directory, threw files in and done", as multiple Apple "expert users" told me when I looked for help on various fora. There are multiple serious issues, that are making packaging for Apple really bad experience...
Anyways, here are some initial test app bundles:
Caveats:
Work on these app bundles continues, but help with solving the issues I mentioned above would be appreciated.
@dreamer: First of all I wanted to mention, that I really appreciate your efforts to make DOSBOX development more transparent and for making sure, that your GIT version is so close to the original. Great job! Highly appreciated. And thank you for working so hard to make a macOS build doable.
Now, about your issue:
"SDL2 sdl2-config program returns broken flags, incompatible with statically linking package provided via brew"
I ran into the exactly same problem in one of my projects. Here is a code snippet of my shell build script, how I solved this issue - maybe it helps:
if [ $OSTP = "OSX" ]; then
#On OSX sdl2-config is not returning the right string to build statically, so we
#need to create it manually by finding out the path to the SDL2 library and then
#by replacing the lSDL2 part in the output of sdl2-config
PATH_TO_SDL2LIB=$(sdl2-config --static-libs | perl -pe 's|(-L/.+?\s).*|\1|' | cut -c 3- | rev | cut -c 2- | rev)"/libSDL2.a"
SDL2_LIBS=$(sdl2-config --static-libs | sed 's|-lSDL2|'$PATH_TO_SDL2LIB'|')
else
SDL2_LIBS=`sdl2-config --static-libs`
I cleaned up and updated macOS snapshot work done so far, it's now on branch po/macos-snapshot-3.
The latest test build can be downloaded from here: https://github.com/dreamer/dosbox-staging/actions/runs/40168027
Previous build had a linking problem preventing it from starting if SDL2_net was missing, new updated test branch for snapshots is now po/macos-snapshot-4 (hopefully it's the last one before merging-in release build to master branch).
The latest build can be downloaded from here: https://github.com/dreamer/dosbox-staging/actions/runs/46491796
Initial support for macOS snapshot builds just landed in master with #200, so I am closing this issue.
All the problems I mentioned in my earlier comments are still there and we'll be addressing them one-by-one via new issues/bug reports.
Most helpful comment
Initial support for macOS snapshot builds just landed in master with #200, so I am closing this issue.
All the problems I mentioned in my earlier comments are still there and we'll be addressing them one-by-one via new issues/bug reports.