mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 05:23:33 +02:00
check a level up from server-console.exe for win32
This commit is contained in:
parent
9039334af5
commit
055a0ff7d9
1 changed files with 7 additions and 1 deletions
|
@ -23,9 +23,10 @@ exports.searchPaths = function(name, binaryType, releaseType) {
|
||||||
|
|
||||||
if (!releaseType) {
|
if (!releaseType) {
|
||||||
// check in the developer build tree for binaries
|
// check in the developer build tree for binaries
|
||||||
|
var typeSpecificPath = (binaryType == "local-release" ? "Release/" : "Debug/")
|
||||||
paths = [
|
paths = [
|
||||||
devBasePath + name + extension,
|
devBasePath + name + extension,
|
||||||
devBasePath + (binaryType == "local-release" ? "Release/" : "Debug/") + name + extension
|
devBasePath + typeSpecificPath + name + extension
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
// check directly beside the binary
|
// check directly beside the binary
|
||||||
|
@ -33,6 +34,11 @@ exports.searchPaths = function(name, binaryType, releaseType) {
|
||||||
path.join(path.dirname(process.execPath), name + extension)
|
path.join(path.dirname(process.execPath), name + extension)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (process.platform == "win32") {
|
||||||
|
// check a level back in case we're packaged on windows
|
||||||
|
paths.push(path.resolve(path.dirname(process.execPath), '../' + name + extension))
|
||||||
|
}
|
||||||
|
|
||||||
// assume we're inside an app bundle on OS X
|
// assume we're inside an app bundle on OS X
|
||||||
if (process.platform == "darwin") {
|
if (process.platform == "darwin") {
|
||||||
var contentPath = ".app/Contents/";
|
var contentPath = ".app/Contents/";
|
||||||
|
|
Loading…
Reference in a new issue