love launcher script

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
monolifed
Party member
Posts: 173
Joined: Sat Feb 06, 2016 9:42 pm

love launcher script

Post by monolifed »

This is a launcher script for love to be used with extracted AppImage on linux

Flavor1 (run love directly):

Code: Select all

#!/bin/sh
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
#assuming extracted path is lovedir (relative to this script)
APPDIR="$SCRIPT_PATH/lovedir"
LIBPATHS="$APPDIR/usr/lib:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu"

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIBPATHS"
exec "$APPDIR/usr/bin/love" "[email protected]"
Flavor2 (run wrapper-love)

Code: Select all

#!/bin/sh
OWD=$PWD
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
#assuming extracted path is lovedir (relative to this script)
APPDIR="$SCRIPT_PATH/lovedir"
LIBPATHS="$APPDIR/usr/lib:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu"

export OWD="$OWD"
export APPDIR="$APPDIR"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIBPATHS"
exec "$APPDIR/usr/bin/wrapper-love" "[email protected]"
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests