mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
# add fpcalc to the $PATH by default
This commit is contained in:
parent
1835467582
commit
0070056935
@ -9,6 +9,13 @@ if [ -z "$USER" ]; then
|
|||||||
export USER=`whoami`
|
export USER=`whoami`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# add package lib folder to library path
|
||||||
|
PACKAGE_LIBRARY_PATH="$QPKG_ROOT/lib/$(uname -m)"
|
||||||
|
|
||||||
|
# add fpcalc to the $PATH by default
|
||||||
|
export PATH="$PATH:$PACKAGE_LIBRARY_PATH"
|
||||||
|
|
||||||
# force JVM language and encoding settings
|
# force JVM language and encoding settings
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
export LC_ALL="en_US.UTF-8"
|
export LC_ALL="en_US.UTF-8"
|
||||||
@ -22,7 +29,7 @@ FFPROBE="/mnt/ext/opt/medialibrary/bin/ffprobe"
|
|||||||
|
|
||||||
# select application data folder
|
# select application data folder
|
||||||
APP_DATA="$QPKG_ROOT/data/$USER"
|
APP_DATA="$QPKG_ROOT/data/$USER"
|
||||||
LIBRARY_PATH="$QPKG_ROOT/lib/$(uname -m)"
|
LIBRARY_PATH="$PACKAGE_LIBRARY_PATH:$LD_LIBRARY_PATH"
|
||||||
|
|
||||||
# start filebot
|
# start filebot
|
||||||
java -Dapplication.deployment=qpkg -Dnet.filebot.license="$QPKG_ROOT/data/.license" -Dnet.filebot.media.parser="$MEDIA_PARSER" -Dnet.filebot.media.ffprobe="$FFPROBE" -Dnet.filebot.Archive.extractor="$ARCHIVE_EXTRACTOR" -Djava.awt.headless=true @{java.application.options} @{linux.application.options} @{linux.portable.application.options} $JAVA_OPTS $FILEBOT_OPTS -jar "$QPKG_ROOT/jar/filebot.jar" "$@"
|
java -Dapplication.deployment=qpkg -Dnet.filebot.license="$QPKG_ROOT/data/.license" -Dnet.filebot.media.parser="$MEDIA_PARSER" -Dnet.filebot.media.ffprobe="$FFPROBE" -Dnet.filebot.Archive.extractor="$ARCHIVE_EXTRACTOR" -Djava.awt.headless=true @{java.application.options} @{linux.application.options} @{linux.portable.application.options} $JAVA_OPTS $FILEBOT_OPTS -jar "$QPKG_ROOT/jar/filebot.jar" "$@"
|
||||||
|
@ -25,7 +25,7 @@ PACKAGE_LIBRARY_PATH="$FILEBOT_HOME/lib/$(uname -m)"
|
|||||||
SYNO_LIBRARY_PATH="/usr/local/mediainfo/lib:/usr/local/chromaprint/lib"
|
SYNO_LIBRARY_PATH="/usr/local/mediainfo/lib:/usr/local/chromaprint/lib"
|
||||||
|
|
||||||
# add fpcalc to the $PATH by default
|
# add fpcalc to the $PATH by default
|
||||||
export PATH="$PATH:/usr/local/chromaprint/bin"
|
export PATH="$PATH:/usr/local/chromaprint/bin:$PACKAGE_LIBRARY_PATH"
|
||||||
|
|
||||||
|
|
||||||
# restore original working dir (which may be /root and yield permission denied)
|
# restore original working dir (which may be /root and yield permission denied)
|
||||||
|
@ -16,15 +16,21 @@ done
|
|||||||
PRG_DIR=`dirname "$PRG"`
|
PRG_DIR=`dirname "$PRG"`
|
||||||
FILEBOT_HOME=`cd "$PRG_DIR" && pwd`
|
FILEBOT_HOME=`cd "$PRG_DIR" && pwd`
|
||||||
|
|
||||||
# add package lib folder to library path
|
|
||||||
PACKAGE_LIBRARY_ARCH="$(uname -s)-$(uname -m)"
|
|
||||||
PACKAGE_LIBRARY_PATH="$FILEBOT_HOME/lib/$PACKAGE_LIBRARY_ARCH"
|
|
||||||
|
|
||||||
# make sure required environment variables are set
|
# make sure required environment variables are set
|
||||||
if [ -z "$USER" ]; then
|
if [ -z "$USER" ]; then
|
||||||
export USER=`whoami`
|
export USER=`whoami`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# add package lib folder to library path
|
||||||
|
PACKAGE_LIBRARY_ARCH="$(uname -s)-$(uname -m)"
|
||||||
|
PACKAGE_LIBRARY_PATH="$FILEBOT_HOME/lib/$PACKAGE_LIBRARY_ARCH"
|
||||||
|
|
||||||
|
# add fpcalc to the $PATH by default
|
||||||
|
export PATH="$PATH:$PACKAGE_LIBRARY_PATH"
|
||||||
|
|
||||||
|
|
||||||
# force JVM language and encoding settings
|
# force JVM language and encoding settings
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
export LC_ALL="en_US.UTF-8"
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user