没有 GUI 的电子 [英] Electron without GUI

查看:10
本文介绍了没有 GUI 的电子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个在后台作为 Web 应用程序工作的 node.js 应用程序.该应用程序应该为主要客户的站点提供一些功能.该应用程序将安装在许多具有不同操作系统的机器上,这就是我想摆脱 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.

我使用了 electron-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆