用于将HTML5应用程序作为桌面应用程序分发

编程入门 行业动态 更新时间:2024-10-19 11:46:13
本文介绍了用于将HTML5应用程序作为桌面应用程序分发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

发布基于HTML5的桌面应用程序的一些解决方案是什么?

我希望能够将我的HTML5应用程序作为独立的桌面应用程序分布在Windows,OSX,和Linux。我希望人们能够双击我的应用程序图标快捷方式来运行我的程序。

我不希望浏览器窗口显示,只是我的应用程序。这可能吗?

解决方案

2014年的HTML5应用程序 框架chrome / webkit

  • Electron (前Atom Shell)

    Electron是一个由GitHub开发的开源库,用于构建带有HTML的跨平台桌面应用程序,CSS和JavaScript。 Electron通过将Chromium和Node.js组合到单个运行时间中实现了这一点,并且可以为Mac,Windows和Linux打包应用程序。 (来源)

    github上的人使用它来提供他们的代码编辑器Atom 作为应用程序。它在官方原子论坛有一个记录的api和一个帮助频道。

  • Node-Webkit ,最小的方法

    node-webkit是一个应用程序运行时基于Chromium和node.js.您可以使用node-webkit在HTML和JavaScript中编写本机应用程序。它还允许您直接从DOM调用Node.js模块,并使用所有Web技术编写原生应用程序的新方法。

    英特尔在这背后(?)。我已经被告知它的边缘非常粗糙。

  • Brackets Shell ,Adobes代码编辑器的沙箱(以及Adobe Edge的基础)

    注意:括号 - 外壳仅保留供Brackets项目使用。虽然有些人肯定已经成功地将它用作其他项目的应用程序外壳程序,但我们没有提供任何官方支持,并且我们还没有做大量工作来使应用程序外壳程序易于重用。很多人可能会发现使用node-webkit这样的项目更容易,这个项目在设计上更具通用性。

    但还是有很多人在做这些事情。

框架+工具
  • Adob​​e AIR ,并提出了另一个答案。 $ b

    Adobe®AIR®运行时使开发人员能够将相同的代码打包到适用于Windows的本机应用程序中, Mac OS桌面以及iPhone,iPad,Kindle Fire,Nook平板电脑和其他Android™设备,到达超过5亿个设备的移动应用商店。

  • Sencha 是一家为应用开发者销售工具的公司,其中包括html5应用开发和分销。 非活动方法

    • 潮汐SDK (于2015-07-12存档于archive ),测试版,于2015年7月12日停止

      www.tidesdk/

    • Mozilla的XULRunner 可能会为您解决问题,但会增加一些开销。

    • app.js 以 2013年10月28日被超过( github/rogerwang/node-webkit)[node-webkit] 。

      因为它简单而强大。使用AppJS,您无需担心编码跨平台或学习新语言和工具。您已经熟悉HTML,CSS和JavaScript。有什么比这个应用程序开发堆栈更好?除此之外,AppJS在核心使用Chromium,因此您可以使用最新的HTML 5 API。因此,关注应用程序应该完成的任务。

    • Mozilla Prism 已被分解,它们的内容为:

      将Web应用程序带到您的桌面 Prism是一款应用程序,它允许用户将Web应用程序从浏览器中分离出来并直接在桌面上运行。

    What are some solutions for distributing an HTML5 based desktop application?

    I want to be able to distribute my HTML5 app as a standalone desktop application on Windows, OSX, and Linux. I would like for people to be able to double click my app icon shortcut to run my program.

    I don't want the browser window showing at all, just my app. Is this possible?

    解决方案

    HTML5 Apps in 2014 Frames by chrome/webkit

    • Electron (former Atom Shell)

      Electron is an open source library developed by GitHub for building cross-platform desktop applications with HTML, CSS, and JavaScript. Electron accomplishes this by combining Chromium and Node.js into a single runtime and apps can be packaged for Mac, Windows, and Linux. (source)

      The folks at github use this to provide their code editor Atom as an app. It has an documented api and a help channel on the official atom forums.

    • Node-Webkit, the most minimal approach

      node-webkit is an app runtime based on Chromium and node.js. You can write native apps in HTML and JavaScript with node-webkit. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies.

      Intel is behind this (?). I've been told it's very rough around the edges.

    • Brackets Shell, the sandbox of Adobes code editor (and base of Adobe Edge)

      Note: The brackets-shell is only maintained for use by the Brackets project. Although some people have definitely had success using it as an app shell for other projects, we don't provide any official support for that and we haven't done a ton of work to make the app shell easily reusable. Many people will likely find it easier to use a project like node-webkit, which is more generic by design.

      says the readme, but there are quite a lot of folks out there who did it nevertheless.

    Frameworks + Tools
    • Adobe AIR, as another answers suggested.

      The Adobe® AIR® runtime enables developers to package the same code into native apps for Windows and Mac OS desktops as well as iPhone, iPad, Kindle Fire, Nook Tablet, and other Android™ devices, reaching the mobile app stores for over 500 million devices.

    • Sencha is a company which sells tools for app developers, including html5 app development and distribution.

    Inactive approaches
    • Tide SDK (archived on 2015-07-12 at archive), beta version, discontinued on 12th Jul 2015

      www.tidesdk/

    • XULRunner from Mozilla may do the trick for you but adds some overhead.

    • app.js ended at 28th Oct 2013 for being surpassed by (github/rogerwang/node-webkit)[node-webkit].

      Because it is simple and yet powerful. Using AppJS you don't need to be worry about coding cross-platform or learning new languages and tools. You are already familiar with HTML, CSS and JavaScript. What is better than this stack for application development? Beside, AppJS uses Chromium at the core so you get latest HTML 5 APIs working. So and focus on the task your application should do.

    • Mozilla Prism is decomissioned, their slugline was:

      Bringing web applications to your Desktop Prism is an application that lets users split web applications out of their browser and run them directly on their desktop.

更多推荐

用于将HTML5应用程序作为桌面应用程序分发

本文发布于:2023-11-07 15:10:44,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   桌面

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!