Yeah this is incomplete but still pretty valuable since it shows an easy path to using xcodebuild for notarization. I just tested your script w/ an arm64 target instead of x86-64 and the
tweaks mentioned earlier and it builds fine on my machine. This is not redistributable yet however since we don't have prebuilt ffmpeg/freetype UB2 libraries to bundle. Right now, this relies on dynamically linking to shared, homebrew-provided ffmpeg & freetype libraries.
I never made a note of how we built the pre-packaged libs the last time
The last known compilation instructions I have seen are in
https://github.com/scp-fs2open/scp-prebuilt/tree/master/docThey're pretty much re-useable as is, since — if I remember correctly — bundled frameworks and libraries don't need to be signed/notarized individually. The application bundle is signed, notarized and stapled as a whole when running
xcodebuild -exportNotarizedApp or
xcrun altool --notarize-appI just got a new Silicon Macbook at work again (had one back in February but changed jobs then) and would be interested in helping out if there are solvable problems to get this going again.
I'm also interested in helping.
AFAICT, this is what needs to be done to have redistributable Mac builds again:
prebuilt UB2 ffmpeg lib done PR12- prebuilt UB2 freetype lib PR open PR10
prebuilt UB2 SDL2 lib done PR8- creating an Apple Developper account
- application bundle notarization
- upgrade github action workflow PR open PR4337
It would be probably good to have an issue on GH to track progress.
It would also be nice to have the inputs of @virusman and @notimaginative — these are Github handles, anyone know their handles here? — since they seem to have put quite a bit of effort in the past on Mac support.
Edit: updated the TODO list since PR12 was just approved