How to wrap Commad executable in .app package?

I wrote an OpenGL + GLUT game for Mac OS X that currently runs through the command line. I would like to make the game more convenient by putting it in the .app package, so that ordinary users can open the game like any other program. What is the best way to do this?

+3
source share
2 answers

AppleScript or Platypus.

+3
source

The best way to do this is to just go and use Xcode.

  • Create a new project. (You can make it empty.)
  • Create a goal if necessary. Empty projects are not related to goals.
  • OpenGL.framework . , Cocoa, Carbon , , . SDL GLUT, .
  • , . .

, .app. fopen()ing your.app/Contents/Resources.

, , , , . ( , / / .)

0

Source: https://habr.com/ru/post/1726213/


All Articles