@@ -23,11 +23,11 @@ INSTALLER_DIRNAME="installer"
2323
2424# ## Parameters
2525
26- # This script
27- SCRIPT_PATH= " $( cd -- " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) "
26+ # The location of the root of the server repo relative to this script
27+ repo_base= " ../../CodeProject.AI-Server-Private "
2828
2929# Utilities
30- source " ${SCRIPT_PATH} /../.. /src/SDK/Scripts/utils.sh"
30+ source " ${repo_base} /src/SDK/Scripts/utils.sh"
3131
3232# The path, relative to the root of the install, used to launch the application
3333# eg "myapp" or "server/myserver". A shortcut to /usr/local/bin will be created
@@ -37,9 +37,9 @@ APPLICATION_FILE_PATH="server/CodeProject.AI.Server.dll"
3737PRODUCT=" CodeProject.AI Server"
3838
3939# We're building for the current server version
40- MAJOR=$( grep -o ' "Major"\s*:\s*[^,}]*' " ${SCRIPT_PATH} /../.. /src/server/version.json" | sed ' s/.*: \(.*\)/\1/' )
41- MINOR=$( grep -o ' "Minor"\s*:\s*[^,}]*' " ${SCRIPT_PATH} /../.. /src/server/version.json" | sed ' s/.*: \(.*\)/\1/' )
42- PATCH=$( grep -o ' "Patch"\s*:\s*[^,}]*' " ${SCRIPT_PATH} /../.. /src/server/version.json" | sed ' s/.*: \(.*\)/\1/' )
40+ MAJOR=$( grep -o ' "Major"\s*:\s*[^,}]*' " ${" ${repo_base} /src/server/version.json" | sed ' s/.*: \(.*\)/\1/' )
41+ MINOR=$(grep -o ' "Minor"\s*:\s*[^,}]*' " ${" ${repo_base} /src/server/version.json" | sed ' s/.*: \(.*\)/\1/' )
42+ PATCH=$(grep -o ' "Patch"\s*:\s*[^,}]*' " ${" ${repo_base} /src/server/version.json" | sed ' s/.*: \(.*\)/\1/' )
4343VERSION=" ${MAJOR} .${MINOR} .${PATCH} "
4444
4545# For places where we need no spaces (eg identifiers)
0 commit comments