-->

Electron without GUI

2020-07-18 06:08发布

问题:

I need to create a node.js application that works in background as a web application. The app should provide some functionality for the main client's site. The application is going to be installed on many machines with differences OS, that's why I want to get rid of node.js dependency and compile it to binary.

I used electron-builder, but as I understood it depended on GUI. So, what can I do to compile the app that can work without GUI and Node.js?

回答1:

How about pkg?

This command line interface enables you to package your Node.js project into an executable that can be run even on devices without Node.js installed.