我正在运行一个电子桌面应用程序,是否可以将它与nodejs服务器设置打包在一起,使其成为一个完整的应用程序或.exe文件?
Electron is already bundled with NodeJS. To package the app, install the electron-packager
module:
npm install -g electron-packager
And then package your app with:
electron-packager <sourcedir> --platform=<platform> --arch=<arch>
See the linked docs above for more details on how to do this.
Or you can save it to your package.json file and create a gulp task to run the packager.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.