mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 20:30:13 +01:00
19 lines
412 B
Bash
Executable File
19 lines
412 B
Bash
Executable File
{{ shebang }}
|
|
|
|
# If running from an extracted image, then export ARGV0 and APPDIR
|
|
if [ -z "${APPIMAGE}" ]; then
|
|
export ARGV0=$0
|
|
|
|
self="$(readlink -f -- $0)"
|
|
here="${self%/*}"
|
|
export APPDIR="${APPDIR:-${here}}"
|
|
fi
|
|
|
|
# Resolve the calling command (preserving symbolic links).
|
|
export APPIMAGE_COMMAND="$(command -v -- $ARGV0)"
|
|
{{ tcltk-env }}
|
|
{{ cert-file }}
|
|
|
|
# Call the entry point
|
|
{{ entrypoint }}
|