Fix resolution of Mailsync process inside ASAR

This commit is contained in:
Ben Gotow 2017-07-11 12:27:48 -07:00
parent aa2e2a7624
commit 2382ff3084

View file

@ -31,7 +31,7 @@ export default class MailsyncProcess extends EventEmitter {
super();
this.configDirPath = configDirPath;
this.account = account;
this.binaryPath = path.join(resourcePath, 'MailSync');
this.binaryPath = path.join(resourcePath, 'MailSync').replace('app.asar', 'app.asar.unpacked');
this._proc = null;
}
@ -72,7 +72,7 @@ export default class MailsyncProcess extends EventEmitter {
reject(new Error(LocalizedErrorStrings[response.error] || response.error))
}
} catch (err) {
reject(err);
reject(new Error(buffer.toString()));
}
});
});