From 7093bde226d0dad9a3a1c0a644d16bdf8f1f0f4c Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 16 Sep 2018 17:57:46 -0400 Subject: [PATCH] New: Compatibility with Hombrew-installed mono Co-Authored-By: Mark McDowall --- osx/Lidarr | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osx/Lidarr b/osx/Lidarr index 2cbc0d1f5..b18dedd25 100644 --- a/osx/Lidarr +++ b/osx/Lidarr @@ -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."