added startup scripts for appimage
This commit is contained in:
parent
dcbd0c29c0
commit
fb1588a019
2 changed files with 56 additions and 0 deletions
28
resources/appimage/bin/syng
Executable file
28
resources/appimage/bin/syng
Executable file
|
@ -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 "$@"
|
28
resources/appimage/bin/yt-dlp
Executable file
28
resources/appimage/bin/yt-dlp
Executable file
|
@ -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 "$@"
|
Loading…
Add table
Reference in a new issue