简体   繁体   English

启动HTML页面作为独立的桌面应用程序

[英]Launch an HTML page as a self-contained desktop app

How can I distribute a program that is only an HTML page (and its resources), so that it will launch in its own window as a self-contained desktop application? 如何分发仅包含HTML页面(及其资源)的程序,以使其作为独立的桌面应用程序在其自己的窗口中启动?

Some programs are released as a bundle of files with the instruction “use your web browser to open this HTML file”. 某些程序以文件捆绑形式发布,并带有“使用Web浏览器打开此HTML文件”指令。 An example is MuscleBook . 一个例子是MuscleBook The program runs entirely locally, using resources bundled in the download, and the web browser is merely a UI and execution platform. 该程序使用下载中捆绑的资源完全在本地运行,并且Web浏览器仅仅是UI和执行平台。

What I want is an easy way to install a command-line wrapper that will launch that web page from local storage, in a window that presents the program and allows the user to interact with it like any other desktop application. 我想要的是一种简单的方法来安装命令行包装程序,该程序将在一个显示程序并允许用户与其他桌面应用程序进行交互的窗口中,从本地存储启动该网页。 It should not require the user to open a web browser program, and should not appear in a tab of some existing open browser program. 它不应要求用户打开Web浏览器程序,也不应出现在某些现有打开的浏览器程序的选项卡中。

The Mozilla project made XULRunner which seems to be what I'm looking for. Mozilla项目制作了XULRunner ,这似乎是我想要的。 But that project is now “archived” and no longer supported. 但是该项目现在已“存档”,不再受支持。 What should I use instead, to deploy an existing HTML app as a desktop app? 我应该使用什么将现有的HTML应用程序部署为桌面应用程序?

This might be reasonably relevant: 这可能是合理相关的:

https://github.com/jiahaog/nativefier https://github.com/jiahaog/nativefier

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM