mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
Fix resolution of Mailsync process inside ASAR
This commit is contained in:
parent
aa2e2a7624
commit
2382ff3084
1 changed files with 2 additions and 2 deletions
|
@ -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()));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue