HTML5桌面包装/框架 [英] HTML5 Desktop Wrapper/Framework
问题描述
目前我正在构建HTML5应用程序。
我真的很想把它部署到桌面上,我已经看过诸如Sencha这样的解决方案,但没有运气(我发现Sencha令人失望和令人沮丧的工作)。我希望跨平台兼容性和易于部署,但我还没有发现任何开源或商业看起来可以有效地完成工作。
任何人都可以有一些经验表明可能适合在桌面上打包和部署HTML5应用程序的框架?最终的要求是它可以在Mac OS和Windows上运行 - 但是现在单独使用Windows非常棒。
我考虑过构建一个C#包装器这将会呈现HTML5,但一个解决方案可能已经存在,我忽略了。
我很感谢有经验的人的任何回应 - 与此相关的其他问题对这个问题没有提出'提问者'的解决方案。
解决方案周:
- Node-Webkit - 基于Chromium(也支持Google Chrome)和node.js的应用运行时。您可以使用node-webkit在HTML和JavaScript中编写本机应用程序。它还允许您直接从DOM调用Node.js模块,并支持使用所有Web技术编写本机应用程序的新方法。它是在英特尔开源技术中心创建和开发的。
- Adobe AIR - 广泛使用,但具有主要的供应商依赖性,并且不支持Linux。
- PHP桌面 - 不要让名字欺骗你,PHP桌面也可以充当纯HTML5 / JS应用程序的包装者。它嵌入了一个Chromium浏览器和一个Web服务器。运送PHP解释器不是必需的。 PHP桌面与PHP没有很强的联系,它也可以作为Perl,Ruby,Python等任何其他脚本语言的打包器,提供用于执行脚本的CGI接口。
- XULRunner - 直接受益于Firefox的开发工作,这是一个非常好的解决方案,拥有优秀的跨平台支持,但几乎不存在用于打包和分发的工具或文档,而不是Firefox和其他基于XULRunner的开源应用程序本身。 UPDATE 2013-06-15:以下 Webapp XUL Wrapper 解决了这些问题
- Chrome网络应用程序 - 如果您只需要一个链接到您的网络应用从您的Chrome主屏幕
- Chrome Installable Web Apps - 就像Chrome Web应用程序一样,它具有更多的桌面集成。不支持Flash。 Mozilla Open Web Apps a> - 如果您需要的只是从您的Firefox主屏幕链接到您的网络应用程序,那么这是一个很好的选择
- Mozilla原生Web应用程序 - 就像一个Mozilla开放Web应用程序,具有更好的桌面集成。仍然需要通过Firefox Marketplace进行在线安装。
- Flash投影机 - 值得一提的低成本解决方案,用于将基于Flash的应用程序打包为独立桌面应用程序 noreferrer> AppJS(Node.js) - 有前途的项目,但活动不多
- Bellite工具包 - 一种商业产品,旨在实现1MB左右的轻量级库存,比同类产品小70倍至100倍基于Chromium Embedded 的框架。多进程架构允许使用Node,Python,Ruby,PHP或通用可执行文件。 (注意在windows上需要使用Modernizr(JS shim)在自Bellite开关后的应用程序从Chrome Frame使用Internet Explorer )
- Webapp XUL Wrapper - 基于XUL的封装和构建脚本,用于将Web应用程序打包成适用于Mac,Windows和Linux的可分发软件包。 Brackets Shell - 由bracket.io团队创建的一个很棒的包装器。完成构建设置说明和Grunt构建工具。在这里查看更多信息: http://clintberry.com/2013/html5- desktop-apps-with-brackets-shell /
- Atom Shell - 由atom.io团队创建的包装器。它基于node.js和Chromium,并用于Atom编辑器。
对事物当前状态的详细概述,以及更多: http:// blog.neamlabs.com/post/36584972328/2012-11-26-web-app-cross-platform-desktop-distribution
另一半详细概述如下:
http://clintberry.com/2013/html5- apps-desktop-2013 /
不再有效/维持:
- WebRunner / Mozilla Prism - 基于XULRunner的在独立浏览器窗口中运行网站的方法。被遗弃了三次,目前只剩下HTML5支持,但与Firefox 3.6相当。
- TideSDK (以前称为Titanium Desktop) - 2012年底发布的最新版本,目前没有积极的维护者。
I'm currently mid-way through building a HTML5 application.
I'd really like to deploy this to desktop and I've looked at solutions such as Sencha but have had no luck (I found Sencha disappointing and frustrating to work with). I'd like cross platform compatibility and ease of deployment but I haven't found anything open-source or commercial that looks like it could do the job effectively.
Can anyone with some experience suggest a framework which might be suitable for packaging and deploying a HTML5 application on the desktop? An end requirement of this is that it will functional on both Mac OS and Windows - but for now Windows alone is great.
I've considered looking into building a C# wrapper which will render the HTML5, but a solution may already exist that I've overlooked.
I'd appreciate any responses from someone with experience - the other questions relating to this on the SO don't outline the solution the 'asker' went with.
Findings after having researched this subject for a couple of weeks:
- Node-Webkit - an app runtime based on Chromium (which also powers Google Chrome) and node.js. You can write native apps in HTML and JavaScript with node-webkit. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies. It's created and developed in the Intel Open Source Technology Center.
- Adobe AIR - Widely used but with a major vendor dependency and no Linux support
- PHP Desktop - Don't let the name deceive you, PHP Desktop can also act as a packager for pure HTML5/JS applications. It embeds a Chromium browser and a web server. Shipping the PHP interpreter is not required. PHP Desktop is not strongly tied to PHP, it can also act as a packager for any other scripting languages like Perl, Ruby, Python, that provide a CGI interface for executing scripts.
- XULRunner - Benefiting directly on Firefox development efforts, this is an extremely well-maintained solution with great cross platform support but with almost non-existent tooling or documentation for packaging and distribution other than those of Firefox and other open source XULRunner-based applications themselves. UPDATE 2013-06-15: Webapp XUL Wrapper below addresses these issues
- Chrome Web Apps - Good option if all you need is a link to your web app from your Chrome home screen
- Chrome Installable Web Apps - Like a Chrome web app with more desktop integration. No flash support.
- Mozilla Open Web Apps - Good option if all you need is a link to your web app from your Firefox home screen
- Mozilla Native Web Apps - Like a Mozilla Open Web App with better desktop integration. Still requires online installation through Firefox Marketplace.
- Flash projector - Worthwhile-to-mention low cost solution for packaging Flash-based apps as standalone desktop apps
- AppJS (Node.js) - Promising project but with little activity
- Bellite Toolkit - a commercial offering that aims for a light weight library footprint at around 1MB, which is 70x to 100x smaller than similar Chromium Embedded based frameworks. Multi-process architecture allows using Node, Python, Ruby, PHP or generic executables. (Note On windows requires the use of Modernizr (JS shim) in the app since Bellite's switch from Chrome Frame to use Internet Explorer)
- Webapp XUL Wrapper - A XUL-based wrapper and build scripts for packaging a webapp into distributable bundles for Mac, Windows, and Linux.
- Brackets Shell - An awesome wrapper created by the brackets.io team. Complete with build setup instructions and Grunt build tools. See more here: http://clintberry.com/2013/html5-desktop-apps-with-brackets-shell/
- Atom Shell - A wrapper created by the atom.io team. It is based on node.js and Chromium and is used in the Atom editor.
A detailed overview of the current state of things, and more: http://blog.neamlabs.com/post/36584972328/2012-11-26-web-app-cross-platform-desktop-distribution
Another semi-detailed overview is here: http://clintberry.com/2013/html5-apps-desktop-2013/
No longer active/maintained:
- WebRunner / Mozilla Prism - XULRunner-based approach to running web sites in an independent browser window. Abandoned three times and currently left to rot with HTML5 support but equivalent to Firefox 3.6
- TideSDK (formerly Titanium Desktop) - Last release in end of 2012 and currently without active maintainers.
这篇关于HTML5桌面包装/框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!