运行html5应用程序作为Windows可执行文件 [英] run html5 application as windows executable

查看:116
本文介绍了运行html5应用程序作为Windows可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上浏览了这类事情,我发现了很多类似的问题和文章,但没有人回答这个问题。我有一个大的HTML 5应用程序,我想在Windows上作为可执行文件作为全屏本机应用程序运行它。我可以想象你可以通过以后的c ++中的webkit来做到这一点,但是我不知道c ++并且没有时间彻底地学习它。

I have looked all over the web for this sort of thing i've found lots of similar questions and articles but none answer this. I have a large HTML 5 application and i want to run it as an executable on windows as a full screen native application. I can image you could do it through a webkit later in c++ but i don't know c++ and don't have time to learn it thoroughly unfortunetly.

任何人都可以建议使我的html5应用程序作为全屏Windows应用程序运行的最佳方法是什么?

Can anyone suggest the best way to make my html5 application run as a full screen windows app?

推荐答案

找到解决方案,我下载了Chromium便携式和将应用程序文件放在同一个文件夹中,然后我用.bat文件启动chrome portable,如下所示:

Found a solution, I downloaded Chromium portable and put the app files in the same folder, then I start chromium portable with a .bat file like so:

@echo off
start %cd%/appdata/ChromiumPortable.exe --kiosk %cd%/appdata/app.html

告诉它以全屏模式启动并直接进入app.html主页,希望它可以帮助其他人

which tells it to start in full screen mode and go straight to the app.html home page, hope it helps other people

这篇关于运行html5应用程序作为Windows可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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