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

Hello @ShrirajHegde

AppRun is always the entrypoint in an AppDir. You need to place your application or a symlink, script, or binary there which launches your application.