与Electron相比,Chrome Apps的优缺点是什么? [英] What are the pros and cons of Chrome Apps compared to Electron?

查看:147
本文介绍了与Electron相比,Chrome Apps的优缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用JavaScript(使用网络技术)编写一个桌面应用程序,并希望在Electron和Chrome应用程序之间进行比较。

I want to program a desktop app in javascript (with web technologies) and looked for a comparison between Electron and Chrome Apps.

我所需的一切似乎都有可能使用Chrome Apps,但Electron / NW.js受到了广泛的宣传。电子有什么优势?

Everything I need seems to be possible with Chrome Apps, but there's a big hype around Electron/NW.js. What are the advantages of Electron? Is it due to the large amount of Node packages?

我认为功能差异对我很明显。

I think the functional differences are clear to me.

优点和缺点,例如:

+ Chrome Apps can run on Chrome OS  
- Chrome Apps needs an installed Chrome Browser
...



UPDATE 2016-08-20:



正如爱德华多(Eduardo)所指出的, Google宣布,他们将停止对除Chrome操作系统之外的所有平台使用Chrome应用。因此,我认为这个问题的答案现在显而易见。

UPDATE 2016-08-20:

As Eduardo pointed out, Google announced that they'll discontinue Chrome Apps for all platforms except ChromeOS. So I think the answer to this question is obvious now.

对于所有开发了Chrome应用并有兴趣将其迁移到网络的人,这里是一个Google指南: https://developers.chrome.com/apps/migration

For all of you who developed a Chrome App and are interested in migrating it to the web here's a guide from Google: https://developers.chrome.com/apps/migration

或者,正如Google所述,您也可以将其迁移到电子 NW.js

Or, as Google also mentioned, you migrate it to Electron or NW.js.

推荐答案

您可以完全比较电子和镀铬包装的Apps。它们非常相似。对于他们两个,您都会得到:

You can totally compare electron and chrome packaged Apps. They are very similar. For both of them you get:


  • 使用Web Technologies开发您的桌面应用程序

  • 应用程序运行在Chrome顶部

  • 自动更新。尽管在Chrome中您可以免费获得它,但对于Electron来说,您需要做一些工作。

  • 操作系统集成-与普通网站相比,两者的操作系统集成度都更好,但是Electron支持的范围更广

  • 脱机或联机工作。

  • 均可在Linux,OSX和Windows上工作。 Chrome Web Apps也可以在Chromebook上使用。

  • Develop your Desktop App using Web Technologies
  • App runs on top of Chrome
  • Automatic updates. Though in Chrome you get it for free, for Electron you need to do some work.
  • OS Integration - Both have better integrations with the OS than a normal website, but Electron supports a wider range of OS integration.
  • Work offline or online.
  • Both work on Linux, OSX and Windows. Chrome Web Apps also work on Chromebooks.

有以下区别:


  • 电子使用node.js。因此,您可以导入许多Chrome应用程序中不容易使用的模块。

  • 分发版,您可以通过电子方式自己打包和分发应用程序。使用Chrome Apps,您可以通过Chrome Webstore分发它们。

  • 环境。电子应用程序与完整的环境打包在一起。 Chrome Apps只是使用Chrome环境,因此它们更轻巧,但是对于不同的用户而言,其行为可能有所不同,具体取决于所使用的Chrome版本。

  • Chrome Apps要求用户安装Chrome,Electron不会t。

  • Electron具有更好的测试和调试开发工具。

  • Electron是一个开源平台。 Chrome Apps也是建立在多种开放技术之上的,但特别的发行是由Google控制的。

  • 电子文档要好得多,尽管它的平台要年轻得多。

  • 采用:有许多基于Electron构建的大型成功应用程序,例如Visual Studio Code,GitHub客户端,Slack。 Chrome Apps从未获得过如此强劲的发展势头。

  • Chrome Apps可以紧密集成到Google云端硬盘

  • Electron uses node.js. So you can import many modules not easily available in Chrome Apps.
  • Distribution, with electron you package and distribute the app yourself. With Chrome Apps you distribute them through Chrome Webstore.
  • Environment. An Electron App is packaged with its full environment. Chrome Apps just use Chrome environment so they are lighter, but may behave differently for different users depending on the Chrome version they use.
  • Chrome Apps require the user to have Chrome installed, Electron doesn't.
  • Electron has better developer tools for testing and debugging.
  • Electron is an open source platform. Chrome Apps is also built on top of multiple open technologies but specially distribution is controlled by Google.
  • Electron documentation is much better even though it's a much younger platform.
  • Adoption: There are quite a lot of big and successful apps built on top of Electron such as Visual Studio Code, GitHub client, Slack. Chrome Apps just never picked up as much momentum.
  • Chrome Apps can be tightly integrated into Google Drive

似乎Google最近在除ChromeOS之外的任何平台上都不推荐使用Chrome Apps。因此,我想说它不再是有效的选项。

It seems Google recently deprecated Chrome Apps on any platform other than ChromeOS. So I'd say it's no longer a valid option.

http://blog.chromium.org/2016/08/from-chrome-apps-to-web.html

这篇关于与Electron相比,Chrome Apps的优缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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