1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-15 22:05:00 -05:00
filebot/installer/app/filebot.sh

26 lines
811 B
Bash
Raw Normal View History

#!/bin/sh
PRG="$0"
# resolve relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
# get canonical path
BIN=`dirname "$PRG"`
2018-06-21 03:09:59 -04:00
FILEBOT_HOME=`cd "$BIN/.." && pwd`
JAVA_HOME="$FILEBOT_HOME/PlugIns/openjdk.jre/Contents/Home"
2018-06-23 06:28:51 -04:00
# select application data folder
APP_DATA="$HOME/.filebot"
2018-06-21 03:09:59 -04:00
LIBRARY_PATH="$FILEBOT_HOME/MacOS"
2018-06-21 03:09:59 -04:00
# start filebot
2018-11-20 05:10:38 -05:00
"$JAVA_HOME/bin/java" -Dapplication.deployment=app -Dapple.awt.UIElement=true -Dnet.filebot.AcoustID.fpcalc="$LIBRARY_PATH/fpcalc" @{java.application.options} @{linux.application.options} $JAVA_OPTS $FILEBOT_OPTS --module-path "$JAVA_HOME/ext/modules/lib" --add-modules ALL-MODULE-PATH -jar "$FILEBOT_HOME/Java/filebot.jar" "$@"