AppImage: allow running the server using a fixed argument
This commit is contained in:
parent
c6f206f976
commit
db6a002500
@ -38,13 +38,17 @@ chmod +x linuxdeploy*.sh
|
|||||||
|
|
||||||
# set up custom AppRun script
|
# set up custom AppRun script
|
||||||
cat > AppRun.sh <<\EAT
|
cat > AppRun.sh <<\EAT
|
||||||
#! /bin/sh
|
#! /bin/bash
|
||||||
# make sure to set APPDIR when run directly from the AppDir
|
# make sure to set APPDIR when run directly from the AppDir
|
||||||
if [ -z $APPDIR ]; then APPDIR=$(readlink -f $(dirname "$0")); fi
|
if [ -z $APPDIR ]; then APPDIR=$(readlink -f $(dirname "$0")); fi
|
||||||
export LD_LIBRARY_PATH="$APPDIR"/usr/lib
|
export LD_LIBRARY_PATH="$APPDIR"/usr/lib
|
||||||
export PATH="$PATH":"$APPDIR"/usr/bin
|
export PATH="$PATH":"$APPDIR"/usr/bin
|
||||||
|
|
||||||
exec "$APPDIR"/usr/bin/python "$APPDIR"/usr/bin/syncplay "$@"
|
if [ "$1" == "--server" ]; then
|
||||||
|
exec "$APPDIR"/usr/bin/python "$APPDIR"/usr/bin/syncplay-server "${@:2}"
|
||||||
|
else
|
||||||
|
exec "$APPDIR"/usr/bin/python "$APPDIR"/usr/bin/syncplay "$@"
|
||||||
|
fi
|
||||||
EAT
|
EAT
|
||||||
chmod +x AppRun.sh
|
chmod +x AppRun.sh
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user