diff --git a/resources/appimage/bin/syng b/resources/appimage/bin/syng new file mode 100755 index 0000000..caf78a0 --- /dev/null +++ b/resources/appimage/bin/syng @@ -0,0 +1,28 @@ +#! /bin/bash + +# If running from an extracted image, then export ARGV0 and APPDIR +if [ -z "${APPIMAGE}" ]; then + export ARGV0="$0" + + self=$(readlink -f -- "$0") # Protect spaces (issue 55) + here="${self%/*}" + tmp="${here%/*}" + export APPDIR="${tmp%/*}" +fi + +# Resolve the calling command (preserving symbolic links). +export APPIMAGE_COMMAND=$(command -v -- "$ARGV0") + +# Export TCl/Tk +export TCL_LIBRARY="${APPDIR}/usr/share/tcltk/tcl8.6" +export TK_LIBRARY="${APPDIR}/usr/share/tcltk/tk8.6" +export TKPATH="${TK_LIBRARY}" + +# Export SSL certificate +export SSL_CERT_FILE="${APPDIR}/opt/_internal/certs.pem" + +# Call Python +export PATH="$APPDIR/usr/bin:$PATH" +export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH" +export PYTHONPATH="$APPDIR/usr/lib/python3.13/site-packages" +"$APPDIR/opt/python3.13/bin/python3.13" -m syng "$@" diff --git a/resources/appimage/bin/yt-dlp b/resources/appimage/bin/yt-dlp new file mode 100755 index 0000000..e74ce08 --- /dev/null +++ b/resources/appimage/bin/yt-dlp @@ -0,0 +1,28 @@ +#! /bin/bash + +# If running from an extracted image, then export ARGV0 and APPDIR +if [ -z "${APPIMAGE}" ]; then + export ARGV0="$0" + + self=$(readlink -f -- "$0") # Protect spaces (issue 55) + here="${self%/*}" + tmp="${here%/*}" + export APPDIR="${tmp%/*}" +fi + +# Resolve the calling command (preserving symbolic links). +export APPIMAGE_COMMAND=$(command -v -- "$ARGV0") + +# Export TCl/Tk +export TCL_LIBRARY="${APPDIR}/usr/share/tcltk/tcl8.6" +export TK_LIBRARY="${APPDIR}/usr/share/tcltk/tk8.6" +export TKPATH="${TK_LIBRARY}" + +# Export SSL certificate +export SSL_CERT_FILE="${APPDIR}/opt/_internal/certs.pem" + +# Call Python +export PATH="$APPDIR/usr/bin:$PATH" +export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH" +export PYTHONPATH="$APPDIR/usr/lib/python3.13/site-packages" +"$APPDIR/opt/python3.13/bin/python3.13" -m yt_dlp "$@"