Skip to content

Commit

Permalink
Allows support for electron style installed applications
Browse files Browse the repository at this point in the history
  • Loading branch information
scheppsr77 committed Jul 1, 2021
1 parent 00f6bc8 commit bfe0b50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/binaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ var path = require('path'),
bin = path.join(__dirname,'..','bin'),
exec = require('child_process').exec;

const unpackedPath = path.join(process.resourcesPath,'app.asar.unpacked/node_modules/node-windows/bin');
try {
fs.accessSync(unpackedPath);
bin = unpackedPath
} catch(e){}

var params = function(options,callback) {
callback = callback || function(){};
options = options || {};
Expand Down

0 comments on commit bfe0b50

Please sign in to comment.