Electron without GUI

江枫思渺然 提交于 2019-12-06 06:28:55

问题


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.



来源:https://stackoverflow.com/questions/41062945/electron-without-gui

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!