1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-10-31 15:35:06 -04:00
filebot/installer/deb-universal/filebot.sh

17 lines
677 B
Bash
Raw Normal View History

#!/bin/sh
FILEBOT_HOME="/usr/share/filebot"
if [ -z "$HOME" ]; then
echo '$HOME must be set'
exit 1
fi
# select application data folder
APP_DATA="$HOME/.filebot"
# select libjnidispatch.system.so from $(uname -m)-linux-gnu folder
LIBRARY_PATH=$(echo /usr/lib/*-linux-gnu*/jni | tr ' ' ':')
2019-03-06 05:44:58 -05:00
MODULE_PATH=/usr/share/openjfx/lib
2019-03-06 05:44:58 -05:00
java -Dapplication.deployment=deb --module-path "$MODULE_PATH" --add-modules ALL-MODULE-PATH -Djna.boot.library.name=jnidispatch.system -Dnet.filebot.archive.extractor=ShellExecutables @{java.application.options} @{linux.application.options} @{linux.desktop.application.options} $JAVA_OPTS $FILEBOT_OPTS -jar "$FILEBOT_HOME/jar/filebot.jar" "$@"