没有GUI的电子 [英] Electron without GUI
问题描述
我需要创建一个在后台作为Web应用程序工作的node.js应用程序。该应用程序应为主要客户的网站提供一些功能。该应用程序将被安装在具有不同OS的许多机器上,这就是为什么我想摆脱node.js依赖关系并将其编译为二进制。
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.
我用了electronic -builder,但据我了解,它取决于GUI。那么,我该怎么做才能编译无需GUI和Node.js才能运行的应用程序?
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?
推荐答案
pkg ?
通过此命令行界面,您可以将Node.js项目打包为可执行文件,甚至可以运行在未安装Node.js的设备上。
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.
这篇关于没有GUI的电子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!