This seems like it should be obvious but I am struggling.
I have recently made a game with c++ and SDL2 in vscode mac compiling with clang.
right now I have a bunch of files: an executable, a load of pngs, some wav files as well as a ttf font all in a directory together. How do I go about packaging all of this together in such a way that I can send it to my friends for them to run on their own osx machines so that I can show off... ;)
I'm assuming I need to include the .dylib files for SDL2, SD2L_img and SD2L_ttf somewhere as well?
thanks for the reply!
How do I include the SDL packages in my app, Would I need to add the source code to my working directory before compiling rather than linking to the .dylib files?
Where each component with a back slash is a folder. The executable is in the MacOS folder ('MyApp' above). You could create a bundle by setting up your own folders on the Mac and initially leaving the '.app' extension off of the top folder name. After you have inserted all the folder contents, ie executable, plist, resources etc add the '.app' extension to the top folder and you will have a double clickable app which you can pass around to your friends with Macs (if the gatekeeper allows it). Apple is now requiring its apps to be code signed either in Xcode or by command line and may hinder sharing. You could try it and see if it's still allowed without signing.