I have tried various ways of supplying Lozza as an executable engine, but all were a bit hit-and-miss or ultra-fiddly; until I tried a Node module called pkg:-
https://github.com/vercel/pkg
If your Javascript engine is Node-friendly, which it probably is if using UCI/XBoard and traditional UIs, the simple use of:-
Code: Select all
pkg lozza.js
You can also target specific Node versions, platforms and architectures. For example Windows 7 does not run the latest Node versions, so you can do something like:-
Code: Select all
pkg -t node10-win-x64 -o w7lozza.exe lozza.js
The executables that I've tried (Windows and Linux) seem to work perfectly.