简体   繁体   中英

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?

Some programs are released as a bundle of files with the instruction “use your web browser to open this HTML file”. An example is MuscleBook . The program runs entirely locally, using resources bundled in the download, and the web browser is merely a UI and execution platform.

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.

The Mozilla project made XULRunner which seems to be what I'm looking for. 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?

This might be reasonably relevant:

https://github.com/jiahaog/nativefier

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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