fix build info path on OS X

This commit is contained in:
Stephen Birarda 2016-01-19 18:40:30 -08:00
parent 9054c5f3e9
commit 8ae07e49d7

View file

@ -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");
}
}