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

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

问题描述

我已经阅读了大量的文章和stackoverflow问题,但我似乎没有得到它的工作。

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

我想分发一些将被发送的客户的产品信息在CD或U盘上。回到我用Flash做的这些日子。因为Flash可以编译成一个名为Flash投影机的EXE,并且可以在不安装的情况下运行我的Flash内容。

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.

现在我想给HTML5一个旋转。我需要一种方法来将所有内容打包在CD上,无需安装即可运行。

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.

我听说过可以编译chrome并将其嵌入到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 /)

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/)

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

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

然后在那里是像mozilla无色的项目(http://mozillalabs.com/chromeless)(和berkelium(https://github.com/sirikata/berkelium)

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

与无色我的JQuery Javascript没有工作,Berkelium ...我没有编译...

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

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

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 ...

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

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.

所以没有浏览器地址栏p ickup的index.html和其他一切都由应用程序处理...
像Fullscreen和Close这样的东西会很好...

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.

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

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?

还是有任何预编译的包可以使用? / p>

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

推荐答案

Node-webkit将Chromium(Chrome)浏览器与Node.js相结合。据我了解,您不需要额外的API,但您不需要使用它们,只需创建一个非常简短的json文件,并加快您的项目,您甚至可以将所有内容组合成单个可执行文件。该项目提供二进制文件,因此无需编译。

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天全站免登陆