mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-13 21:05:01 -05:00
16 lines
611 B
Bash
16 lines
611 B
Bash
#!/bin/sh
|
|
FILEBOT_HOME="/usr/share/filebot"
|
|
JAVA_HOME="/usr/lib/jvm/java-@{jvm.version}-openjdk-amd64"
|
|
|
|
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"
|
|
MODULE_PATH="$FILEBOT_HOME/mod"
|
|
|
|
$JAVA_HOME/bin/java -Dapplication.deployment=deb --module-path "$MODULE_PATH" --add-modules ALL-MODULE-PATH -Dnet.filebot.Archive.extractor=SevenZipExecutable @{java.application.options} @{linux.application.options} @{linux.desktop.application.options} $JAVA_OPTS $FILEBOT_OPTS -jar "$FILEBOT_HOME/jar/filebot.jar" "$@"
|