mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +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') {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue