mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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) {
|
||||
// check in the developer build tree for binaries
|
||||
var typeSpecificPath = (binaryType == "local-release" ? "Release/" : "Debug/")
|
||||
paths = [
|
||||
devBasePath + name + extension,
|
||||
devBasePath + (binaryType == "local-release" ? "Release/" : "Debug/") + name + extension
|
||||
devBasePath + typeSpecificPath + name + extension
|
||||
]
|
||||
} else {
|
||||
// check directly beside the binary
|
||||
|
@ -33,6 +34,11 @@ exports.searchPaths = function(name, binaryType, releaseType) {
|
|||
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
|
||||
if (process.platform == "darwin") {
|
||||
var contentPath = ".app/Contents/";
|
||||
|
|
Loading…
Reference in a new issue