The AppRun file can be a script or executable. It sets up required environment variables such as $PATH and launches the payload application. You can write your own, but in most cases it is easiest (and most error-proof) to use a precompiled one from this repository.
I assume under "this repository" should be link, otherwise it's confusing.
https://github.com/AppImage/docs.appimage.org/blob/master/source/packaging-guide/manual.rst
I assume under "this repository" should be link, otherwise it's confusing.