1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-15 13:55:03 -05:00
filebot/installer/deb/filebot.sh
2018-06-21 14:09:59 +07:00

15 lines
505 B
Bash

#!/bin/sh
FILEBOT_HOME="/usr/share/filebot"
JAVA_HOME="$FILEBOT_HOME/jre"
if [ -z "$HOME" ]; then
echo '$HOME must be set'
exit 1
fi
# select application data folder
APP_DATA="$HOME/.filebot"
LIBRARY_PATH="$FILEBOT_HOME/lib"
"$JAVA_HOME/bin/java" -Dapplication.deployment=deb -Dnet.filebot.AcoustID.fpcalc="$LIBRARY_PATH/fpcalc" @{java.application.options} @{linux.application.options} @{linux.desktop.application.options} $JAVA_OPTS $FILEBOT_OPTS -classpath "$FILEBOT_HOME/jar/*" @{main.class} "$@"