apprun.sh 412 B

123456789101112131415161718
  1. {{ shebang }}
  2. # If running from an extracted image, then export ARGV0 and APPDIR
  3. if [ -z "${APPIMAGE}" ]; then
  4. export ARGV0=$0
  5. self="$(readlink -f -- $0)"
  6. here="${self%/*}"
  7. export APPDIR="${APPDIR:-${here}}"
  8. fi
  9. # Resolve the calling command (preserving symbolic links).
  10. export APPIMAGE_COMMAND="$(command -v -- $ARGV0)"
  11. {{ tcltk-env }}
  12. {{ cert-file }}
  13. # Call the entry point
  14. {{ entrypoint }}