打包HTML5应用并将其部署在桌面上 [英] Pack an HTML5 app and deploy it on the desktop

查看:137
本文介绍了打包HTML5应用并将其部署在桌面上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了大量的文章和stackoverflow问题,但我似乎无法正常工作。



我想为客户分发一些产品信息,出在CD或USB棒上。回到我用Flash做的那些日子。因为flash可以编译成一个EXE调用的Flash投影机,并可以运行我的Flash内容而不安装。



现在我想给HTML5一个旋转。我需要一个方法来包装一张CD上的一切,使它运行无处不在安装。



我听说可以编译铬并将其嵌入到c ++应用程序。 (http://code.google.com/p/chromiumembedded/)
我可以使用QT与QtWebkit。 (http://developer.qt.nokia.com/doc/qt-4.8/qtwebkit.html)
我可以编译Webkit并将其嵌入到c ++应用程序中(http://www.webkit。 org /)



示例是大的,我没有任何C ++技能=(



是像mozilla chromeless的项目(http://mozillalabs.com/chromeless)(和berkelium(https://github.com/sirikata/berkelium)



JQuery Javascript没有工作,Berkelium ...我没有得到编译...



我没有预算 http://www.appcelerator.com/ 或其他付费/商业选项...(也不能选择Flash / Air和Silverlight)。因为内容也应部署在web服务器没有使用插件...



我不需要任何访问操作系统,我想有我的Jquery / Backbone应用程序消耗JSON文件运行在没有安装的桌面客户端。



因此没有浏览器adressbar只是拾取index.html和一切由应用程序处理...
像全屏和关闭会很好...



不幸的是我不能依赖于客户操作系统安装的浏览器,因为目标组是大的,我期望很多老浏览器。



任何人都可以给我指导如何编译轻松的应用程序,使我的网络应用程序的东西在CD上运行,没有安全警告等。

解决方案

或者是否有任何预编译的包> Node-webkit将Chromium(Chrome)浏览器与Node.js.根据我的理解,你不需要额外的API,但是你不需要使用它们,只需创建一个非常简短的json文件,并且压缩你的项目就足够了,你甚至可以将所有的东西组合到一个可执行文件中。该项目提供二进制文件,因此无需编译。



https:// github .com / rogerwang / node-webkit


I have read tons of articles and stackoverflow questions but I seem not get it to work.

I want to distribute some product information for a customer which will be send out on a CD or USB stick. Back in the days I did it with Flash. Because flash could compile into a EXE called Flash projector and could run my Flash content without installation.

Now I want to give HTML5 a spin. And I need a way to pack everything on a CD an make it run everywhere without installation.

I heard something that I could compile chromium and embed it in a c++ application. (http://code.google.com/p/chromiumembedded/) I could use QT with QtWebkit. (http://developer.qt.nokia.com/doc/qt-4.8/qtwebkit.html) I could compile Webkit and embed it in a c++ application... (http://www.webkit.org/)

The examples are to big and I do not have any C++ skills =(

Then there are projects like mozilla chromeless (http://mozillalabs.com/chromeless) (and berkelium (https://github.com/sirikata/berkelium)

With chromeless my JQuery Javascript did not work and Berkelium... I did not get to compile...

I have no budget for http://www.appcelerator.com/ or other paid/commercial options... (also Flash/Air and Silverlight are not an option). Because Content should also be deployed on the web server without the use of plugins ...

I do not need any access to the OS. What I want have my Jquery/Backbone app which consumes JSON files to run in a desktop client without installation.

So no browser adressbar just pickup the index.html and everything else is handled by the app... Something like Fullscreen and Close would be nice...

Unfortunately I cannot rely on the installed browser of the "customers OS" because the target group is to large and I expect alot of old browsers.

Can anyone give me instruction how to compile "easily" an app which makes my web app stuff running on the desktop from CD without security warnings, etc?

Or are there any pre-compiled packeges that I could use?

解决方案

Node-webkit combines the Chromium (Chrome) browser with Node.js. As I understand it, you don't need the extra APIs, but you don't need to use them, simply creating a really short json file and zipping up your project is enough, and you can even combine everything into a single executable. The project provides binaries, so no compiling needed.

https://github.com/rogerwang/node-webkit

这篇关于打包HTML5应用并将其部署在桌面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆