简体   繁体   English

用于HTML5 / JS应用程序的桌面包装器

[英]Desktop Wrappers for HTML5/JS Apps

I am currently working on an HTML5/JS game, and I wanted to ask if there are any solutions to create EXE/App wrappers for the game to run the standalone. 我目前正在开发一个HTML5 / JS游戏,我想询问是否有任何解决方案可以为游戏创建EXE / App包装器来运行独立游戏。

I plan to use PhoneGap to get it on mobile devices, but I wanted to also release it for Windows/Mac/Linux as standalone games in their own window. 我计划使用PhoneGap在移动设备上使用它,但我也希望在自己的窗口中将它作为独立游戏用于Windows / Mac / Linux。 Maybe if it turns out well enough, put it on Steam and Desura. 也许如果结果不错,可以把它放在Steam和Desura上。

I hear Titanium Desktop is an option, but seems to be out of date or super buggy according to what I read in various posts. 我听说Titanium Desktop是一个选项,但根据我在各个帖子中读到的内容,似乎已经过时或超级越野车。 While others mention Adobe AIR, but I am not sure how well that will work, or if it will support all the JS I need. 虽然其他人提到了Adobe AIR,但我不确定它的效果如何,或者它是否会支持我需要的所有JS。

So I need help with figuring out if there is a good solution for what I want to do. 所以我需要帮助找出是否有一个很好的解决方案,我想做什么。

Any information is helpful. 任何信息都有帮助。

The BEST solution I found out there is NodeWebkit . 我发现的最佳解决方案是NodeWebkit

It's basically Google Chrome (actually Chromium) wrapped into a customizable chromeless interface. 它基本上是谷歌Chrome(实际上是Chromium)包装成可定制的无边框界面。 It uses Node.js as the backend (you can do data storing, interact with the system...), so you have the advantage of having the fast V8 javascript engine running on both ends. 它使用Node.js作为后端(您可以进行数据存储,与系统进行交互......),因此您可以在两端运行快速V8 javascript引擎。

As its core is just plain old Chromium, it will run smoothly anything that runs smoothly on Chrome. 它的核心只是普通的Chromium,它可以顺畅地运行在Chrome上运行顺畅的任何东西。

Originally I suggested AppJS , but I think the project kind of went dead since then. 最初我建议使用AppJS ,但我认为该项目从那时起就已经死了。 NodeWebkit is very similar, but has an ever better approach: it brings the Node.JS API right into the client javascript, so everthing works seamlessly. NodeWebkit非常相似,但有一个更好的方法:它将Node.JS API直接带入客户端javascript,因此everthing可以无缝地工作。

我推荐Electron for make桌面应用程序包装器,它有很好的文档和许多社区驱动的第三方模块,示例和用例: https//github.com/sindresorhus/awesome-electron

I've heard good things from http://www.appcelerator.com . 我从http://www.appcelerator.com听说过好东西。 I've also seen people use webkit. 我也看到人们使用webkit。 Or use flex/as3/air, which has a built in webkit browser. 或者使用flex / as3 / air,它有一个内置的webkit浏览器。

I've also heard of some custom html5 browsers that extend/improve the canvas element. 我还听说过一些扩展/改进canvas元素的自定义html5浏览器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM