mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 01:22:08 +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 path = require('path');
|
||||
const { app } = require('electron');
|
||||
|
||||
function platformExtension(name) {
|
||||
if (name == "Interface") {
|
||||
|
@ -53,12 +54,9 @@ exports.searchPaths = function(name, binaryType, releaseType) {
|
|||
var componentsPath = appPath + "/Contents/MacOS/Components.app/Contents/MacOS/";
|
||||
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