From 8ae07e49d72f2c65186f45ad60b3d278ad40ac28 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 19 Jan 2016 18:40:30 -0800 Subject: [PATCH] fix build info path on OS X --- server-console/src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-console/src/main.js b/server-console/src/main.js index 35e51b4179..10918cbb82 100644 --- a/server-console/src/main.js +++ b/server-console/src/main.js @@ -45,10 +45,11 @@ function getBuildInfo() { } else if (osType == 'Darwin') { var contentPath = ".app/Contents/"; var contentEndIndex = __dirname.indexOf(contentPath); + if (contentEndIndex != -1) { // this is an app bundle var appPath = __dirname.substring(0, contentEndIndex) + ".app"; - buildInfoPath = path.resolve(appPath, "/Contents/Resources/build-info.json"); + buildInfoPath = path.join(appPath, "/Contents/Resources/build-info.json"); } }