native modules - pass version from electron to API

This commit is contained in:
Jan Prochazka
2021-01-16 20:32:07 +01:00
parent c5e75dfe3e
commit d1aef572bd
11 changed files with 350 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ module.exports = {
raw: true,
},
test(req, res) {
const subprocess = fork(process.argv[1], ['connectProcess']);
const subprocess = fork(process.argv[1], ['connectProcess', ...process.argv.slice(3)]);
subprocess.on('message', (resp) => {
// @ts-ignore
const { msgtype } = resp;