|
|
|
@ -9,7 +9,11 @@ APPNAME="Lidarr"
|
|
|
|
|
|
|
|
|
|
#set up environment
|
|
|
|
|
if [[ -x '/opt/local/bin/mono' ]]; then
|
|
|
|
|
# Macports and mono-supplied installer path
|
|
|
|
|
export PATH="/opt/local/bin:$PATH"
|
|
|
|
|
elif [[ -x '/usr/local/bin/mono' ]]; then
|
|
|
|
|
# Homebrew-supplied path to mono
|
|
|
|
|
export PATH="/usr/local/bin:$PATH"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH="$DIR"
|
|
|
|
@ -27,8 +31,8 @@ fi
|
|
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$HOME/lib:/usr/local/lib:/lib:/usr/lib"
|
|
|
|
|
|
|
|
|
|
#mono version check
|
|
|
|
|
REQUIRED_MAJOR=3
|
|
|
|
|
REQUIRED_MINOR=10
|
|
|
|
|
REQUIRED_MAJOR=4
|
|
|
|
|
REQUIRED_MINOR=6
|
|
|
|
|
|
|
|
|
|
VERSION_TITLE="Cannot launch $APPNAME"
|
|
|
|
|
VERSION_MSG="$APPNAME requires Mono Runtime Environment(MRE) $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
|
|
|
|
|