1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

removed process renaming for osx

This commit is contained in:
Keivan Beigi 2014-12-01 16:59:16 -08:00
parent 3c81d6a10f
commit e1f33d2a47

View File

@ -5,7 +5,6 @@ DIR=$(cd "$(dirname "$0")"; pwd)
#change these values to match your app #change these values to match your app
EXE_PATH="$DIR\nzbdrone.exe" EXE_PATH="$DIR\nzbdrone.exe"
PROCESS_NAME=appname
APPNAME="Sonarr" APPNAME="Sonarr"
#set up environment #set up environment
@ -18,7 +17,7 @@ REQUIRED_MAJOR=3
REQUIRED_MINOR=10 REQUIRED_MINOR=10
VERSION_TITLE="Cannot launch $APPNAME" VERSION_TITLE="Cannot launch $APPNAME"
VERSION_MSG="$APPNAME requires Mono Runtime Environment (MRE) version $REQUIRED_MAJOR.$REQUIRED_MINOR or later." VERSION_MSG="$APPNAME requires Mono Runtime Environment (MRE) $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
DOWNLOAD_URL="http://www.mono-project.com/download/#download-mac" DOWNLOAD_URL="http://www.mono-project.com/download/#download-mac"
MONO_VERSION="$(mono --version | grep 'Mono JIT compiler version ' | cut -f5 -d\ )" MONO_VERSION="$(mono --version | grep 'Mono JIT compiler version ' | cut -f5 -d\ )"
@ -36,13 +35,7 @@ then
exit 1 exit 1
fi fi
#get an exec command that will work on the current OS version MONO_EXEC="exec mono --debug"
OSX_VERSION=$(uname -r | cut -f1 -d.)
if [ $OSX_VERSION -lt 9 ]; then # If OSX version is 10.4
MONO_EXEC="exec mono --debug"
else
MONO_EXEC="exec -a \"$PROCESS_NAME\" mono --debug"
fi
#run app using mono #run app using mono
$MONO_EXEC --debug "$EXE_PATH" $MONO_EXEC --debug "$EXE_PATH"