HTML5桌面包装/框架

Ada*_*m H 50 html5 cross-platform desktop-application

我目前正处于构建HTML5应用程序的中途.

我真的很喜欢将它部署到桌面上,我已经看过像Sencha这样的解决方案,但没有运气(我发现Sencha令人失望并且感到沮丧).我希望跨平台兼容性和易于部署,但我没有发现任何开源或商业,看起来它可以有效地完成工作.

任何有经验的人都可以建议一个可能适合在桌面上打包和部署HTML5应用程序的框架吗?最终的要求是它可以在Mac OS和Windows上运行 - 但是现在只有Windows才能实现.

我已经考虑过构建一个能够呈现HTML5的C#包装器,但是我可能已经忽略了一个解决方案.

我很感激有经验的人提出的任何回复 - 关于此问题的其他问题并未概述"提问者"所采用的解决方案.

Mot*_*tin 68

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:

  • 现在添加node-webkit. (2认同)