mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:18:05 +02:00
fix build info path on OS X
This commit is contained in:
parent
9054c5f3e9
commit
8ae07e49d7
1 changed files with 2 additions and 1 deletions
|
@ -45,10 +45,11 @@ function getBuildInfo() {
|
||||||
} else if (osType == 'Darwin') {
|
} else if (osType == 'Darwin') {
|
||||||
var contentPath = ".app/Contents/";
|
var contentPath = ".app/Contents/";
|
||||||
var contentEndIndex = __dirname.indexOf(contentPath);
|
var contentEndIndex = __dirname.indexOf(contentPath);
|
||||||
|
|
||||||
if (contentEndIndex != -1) {
|
if (contentEndIndex != -1) {
|
||||||
// this is an app bundle
|
// this is an app bundle
|
||||||
var appPath = __dirname.substring(0, contentEndIndex) + ".app";
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue