AppImage

How to set a binary in root of $APPDIR as entrypoint?

I want a binary at root of the appimage to be the entrypoint. How do I achieve this?

EDIT: I am using pkg2appimage

@probono help please