Closed richwifunds closed 4 years ago
Create a node js file called tmp.js that simply references yauzl and prints a couple console statements.
console.log("start"); const yauzl = require('yauzl'); console.log("done")
Create windows executable with pkg (install with npm i pkg) - just run from bash shell.
pkg LaunchAgentStub.js --target node10-win-x64
Run on winx64 machine. "done" will not be printed.
Modify yauzl/index.js - replace references to "extraField.id" with "extraField.efid". Run again. This time "done" will be printed.
This was resolved by running pkg on a windows machine instead of mac.
Create a node js file called tmp.js that simply references yauzl and prints a couple console statements.
console.log("start"); const yauzl = require('yauzl'); console.log("done")
Create windows executable with pkg (install with npm i pkg) - just run from bash shell.
pkg LaunchAgentStub.js --target node10-win-x64
Run on winx64 machine. "done" will not be printed.
Modify yauzl/index.js - replace references to "extraField.id" with "extraField.efid". Run again. This time "done" will be printed.