Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron without GUI

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?

like image 499
Hyper Avatar asked Nov 09 '22 04:11

Hyper


1 Answers

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.

like image 74
vinojash Avatar answered Nov 15 '22 11:11

vinojash