mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-18 20:59:02 +00:00
New: Compatibility with Hombrew-installed mono
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
29c52e47bb
commit
7093bde226
1 changed files with 6 additions and 2 deletions
|
@ -9,7 +9,11 @@ APPNAME="Lidarr"
|
||||||
|
|
||||||
#set up environment
|
#set up environment
|
||||||
if [[ -x '/opt/local/bin/mono' ]]; then
|
if [[ -x '/opt/local/bin/mono' ]]; then
|
||||||
|
# Macports and mono-supplied installer path
|
||||||
export PATH="/opt/local/bin:$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
|
fi
|
||||||
|
|
||||||
export DYLD_FALLBACK_LIBRARY_PATH="$DIR"
|
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"
|
export DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$HOME/lib:/usr/local/lib:/lib:/usr/lib"
|
||||||
|
|
||||||
#mono version check
|
#mono version check
|
||||||
REQUIRED_MAJOR=3
|
REQUIRED_MAJOR=4
|
||||||
REQUIRED_MINOR=10
|
REQUIRED_MINOR=6
|
||||||
|
|
||||||
VERSION_TITLE="Cannot launch $APPNAME"
|
VERSION_TITLE="Cannot launch $APPNAME"
|
||||||
VERSION_MSG="$APPNAME requires Mono Runtime Environment(MRE) $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
|
VERSION_MSG="$APPNAME requires Mono Runtime Environment(MRE) $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
|
||||||
|
|
Loading…
Reference in a new issue