如何在桌面上运行一个JS应用程序并调用C代码?
How to run a JS application on desktop and call C code?
我有一个对计算要求很高的网络应用程序 (WebGL/HTML5/JS)。我想把它变成桌面应用程序。我听说过 app.js、http://appjs.com 但这里的问题是 WebGL ?
我想把它变成桌面应用程序的原因是因为我想调用unix系统命令。
谢谢
Electron would probably be a better choice since it is still actively maintained and AppJS is not. Electron is Chromium based so it supports WebGL. Here is an example 将 WebGL 与 Electron 结合使用。
NW.js is a similar project. There are some technical reasons 您可能更喜欢 Electron 而不是 NW.js。
两者都允许您访问 Node, so you should be able to call system commands using the child process module。
我有一个对计算要求很高的网络应用程序 (WebGL/HTML5/JS)。我想把它变成桌面应用程序。我听说过 app.js、http://appjs.com 但这里的问题是 WebGL ?
我想把它变成桌面应用程序的原因是因为我想调用unix系统命令。
谢谢
Electron would probably be a better choice since it is still actively maintained and AppJS is not. Electron is Chromium based so it supports WebGL. Here is an example 将 WebGL 与 Electron 结合使用。
NW.js is a similar project. There are some technical reasons 您可能更喜欢 Electron 而不是 NW.js。
两者都允许您访问 Node, so you should be able to call system commands using the child process module。