mirror of
https://github.com/overte-org/overte.git
synced 2025-06-22 01:20:40 +02:00
Merge branch 'sysTrayOsx' of https://github.com/roxanneskelly/hifi into sysTraySetup
This commit is contained in:
commit
ec4575f587
1 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
const { app } = require('electron');
|
||||||
|
|
||||||
function platformExtension(name) {
|
function platformExtension(name) {
|
||||||
if (name == "Interface") {
|
if (name == "Interface") {
|
||||||
|
@ -53,12 +54,9 @@ exports.searchPaths = function(name, binaryType, releaseType) {
|
||||||
var componentsPath = appPath + "/Contents/MacOS/Components.app/Contents/MacOS/";
|
var componentsPath = appPath + "/Contents/MacOS/Components.app/Contents/MacOS/";
|
||||||
paths.push(componentsPath + name + extension);
|
paths.push(componentsPath + name + extension);
|
||||||
|
|
||||||
// check beside the app bundle for the binaries
|
|
||||||
paths.push(path.join(path.dirname(appPath), name + extension));
|
|
||||||
|
|
||||||
// check in the peer bundle for the binaries
|
|
||||||
paths.push(path.join("..", name + extension));
|
|
||||||
}
|
}
|
||||||
|
// check beside the app bundle for the binaries
|
||||||
|
paths.push(path.join(path.dirname(app.getAppPath()), "../../..", name + extension));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue