I'm currently in the process of creating an installer for a Java application that I am porting to OS X. I'd love to be able to keep it as simple .dmg with a .app inside because I'd rather avoid the wizard that .pkg installers open.
However, there are some things that I must do in addition to just copying the binaries to /Applications. More precisely I want to install a background daemon that should run as root and auto-start whenever the system starts. Is this possible to achieve with an .app and if so how?
I should also add that the background daemon and the app visible to the user are two different binaries. Is that possible to have within an .app or does it only support one binary? From what I understand it's just a directory so it should be possible to keep the background daemon in the .app as well.