Skip to main content

苹果芯片支持

· 6 min read

随着 Apple Silicon 硬件将于今年晚些时候发布,你如何让你的 Electron 应用在新硬件上运行?

🌐 With Apple Silicon hardware being released later this year, what does the path look like for you to get your Electron app running on the new hardware?


随着 Electron 11.0.0-beta.1 的发布,Electron 团队现在提供可在苹果预计今年晚些时候发售的新 Apple Silicon 硬件上运行的 Electron 版本。你可以通过 npm install electron@beta 获取最新的测试版,或者直接从我们的发布网站下载。

🌐 With the release of Electron 11.0.0-beta.1, the Electron team is now shipping builds of Electron that run on the new Apple Silicon hardware that Apple plans on shipping later this year. You can grab the latest beta with npm install electron@beta or download it directly from our releases website.

它是如何工作的?​

🌐 How does it work?

从 Electron 11 开始,我们将分别为 Intel Mac 和 Apple Silicon Mac 发布不同版本的 Electron。在此之前,我们已经发布了两个软件包,darwin-x64 和 mas-x64,其中 mas-x64 用于 Mac App Store 的兼容性。现在,我们又发布了另外两个软件包,darwin-arm64 和 mas-arm64,它们是前述软件包在 Apple Silicon 上的对应版本。

🌐 As of Electron 11, we will be shipping separate versions of Electron for Intel Macs and Apple Silicon Macs. Prior to this change, we were already shipping two artifacts, darwin-x64 and mas-x64, with the latter being for Mac App Store compatibility usage. We are now shipping another two artifacts, darwin-arm64 and mas-arm64, which are the Apple Silicon equivalents of the aforementioned artifacts.

我需要做什么?​

🌐 What do I need to do?

你需要发布你的应用的两个版本:一个用于 x64(Intel Mac),另一个用于 arm64(Apple Silicon)。好消息是,electron-packager、electron-rebuild 和 electron-forge 已经支持针对 arm64 架构。只要你使用的是这些软件包的最新版本,一旦将目标架构更新为 arm64,你的应用应该能完美运行。

🌐 You will need to ship two versions of your app: one for x64 (Intel Mac) and one for arm64 (Apple Silicon). The good news is that electron-packager, electron-rebuild and electron-forge already support targeting the arm64 architecture. As long as you're running the latest versions of those packages, your app should work flawlessly once you update the target architecture to arm64.

将来,我们会发布一个软件包,允许你将 arm64 和 x64 应用合并成一个通用二进制文件,但值得注意的是,这个二进制文件会非常大,可能不适合直接发布给用户。

更新:此软件包现在可以在 @electron/universal 获得。你可以使用它将两个已打包的 x64 和 arm64 应用合并为一个二进制文件。

🌐 Update: This package is now available at @electron/universal. You can use it to merge two packaged x64 and arm64 apps into a single binary.

潜在问题​

🌐 Potential Issues

原生模块​

🌐 Native Modules

由于你正在针对新的架构,你需要更新几个依赖,这可能会导致构建问题。下面列出了某些依赖的最低版本供你参考。

🌐 As you are targeting a new architecture, you'll need to update several dependencies which may cause build issues. The minimum version of certain dependencies are included below for your reference.

依赖版本要求
Xcode>=12.2.0
node-gyp>=7.1.0
electron-rebuild>=1.12.0
electron-packager>=15.1.0

由于这些依赖版本要求,你可能需要修复/更新某些本地模块。值得注意的是,Xcode 升级将引入新的 macOS SDK 版本,这可能会导致你的本地模块构建失败。

🌐 As a result of these dependency version requirements, you may have to fix/update certain native modules. One thing of note is that the Xcode upgrade will introduce a new version of the macOS SDK, which may cause build failures for your native modules.

如何测试?​

🌐 How do I test it?

目前,Apple Silicon 应用只能在 Apple Silicon 硬件上运行,而在撰写这篇博客文章时,这种硬件尚未商业化。如果你有一个开发者过渡套件,可以在上面测试你的应用。否则,你将不得不等待正式的 Apple Silicon 硬件发布,以测试你的应用是否能正常运行。

🌐 Currently, Apple Silicon applications only run on Apple Silicon hardware, which isn't commercially available at the time of writing this blog post. If you have a Developer Transition Kit, you can test your application on that. Otherwise, you'll have to wait for the release of production Apple Silicon hardware to test if your application works.

Rosetta 2 怎么办?​

🌐 What about Rosetta 2?

Rosetta 2 是苹果最新版本的 Rosetta 技术,它可以让你在新的 arm64 Apple Silicon 硬件上运行 x64 Intel 应用。虽然我们认为 x64 的 Electron 应用可以在 Rosetta 2 下运行,但有一些重要的事项需要注意(以及你应该发布原生 arm64 二进制文件的原因)。

  • 你的应用性能将大幅降低。Electron / V8 使用 JIT 编译 JavaScript,由于 Rosetta 的工作方式,实际上你会运行两次 JIT(一次在 V8 中,一次在 Rosetta 中)。
  • 你失去了 Apple Silicon 新技术带来的好处,例如更大的内存页面大小。
  • 我们有没有提到过性能将会大幅下降?

社区 Discord 服务器和 Hacktoberfest

· 6 min read

加入我们,共同构建社区,并参与为期一个月的开源庆祝活动。

🌐 Join us for community bonding and a month-long celebration of open-source.


Hacktoberfest and Discord banner

Electron 社区 Discord 发布

🌐 Electron Community Discord Launch

Electron 的 外联工作组 很高兴地宣布,我们的官方社区 Discord 服务器现已上线!

🌐 Electron’s Outreach Working Group is excited to announce the launch of our official community Discord server!

为什么要建立新的 Discord 服务器?​

🌐 Why a new Discord server?

在早期作为 Atom 文本编辑器 的核心时,关于 Electron 框架的社区讨论仅在 Atom 的 Slack 工作区的一个通道中进行。随着时间的推移,这两个项目逐渐解耦,Atom 工作区与 Electron 项目的相关性下降,维护者在该 Slack 通道的参与也相应减少。

🌐 In its early days as the backbone of the Atom text editor, community discussion on the Electron framework occurred in a single channel in Atom’s Slack workspace. As time passed and the two projects were increasingly decoupled, the relevance of the Atom workspace to the Electron project decreased, and maintainer participation in the Slack channel declined in the same manner.

直到现在,我们仍然将更广泛的社区重定向到 Atom Slack 工作区,尽管我们收到了许多人关于接收邀请时遇到困难的报告,而且我们的一些核心维护者也很少活跃在该通道。

🌐 Up until now, we had still been redirecting our broader community to the Atom Slack workspace, even though we’ve had many reports from folks who have had trouble receiving invitations, and few of our core maintainers were frequenting the channel.

我们正在建立这个崭新的服务器,作为社区的中央讨论中心,让你可以获取关于 Electron 的所有最新消息。

🌐 We’re setting up this shiny new server to be a central discussion hub for the community where you can get the latest news on all things Electron.

快来加入吧!​

🌐 Get in here!

到目前为止,服务器的成员主要是一些一起合作搭建服务器的维护者,但我们非常期待与大家聊天!来这里寻求帮助,了解最新的 Electron 发布情况,或者只是和其他开发者一起闲聊。我们为你准备了一个方便的邀请链接,让你可以加入服务器!

🌐 So far, the server’s membership consists of a few maintainers who have been working together to set it up, but we’re so excited to chat with you all! Come ask for help, keep up to date with Electron releases, or just hang out with other developers. We’ve got a handy invite for you that’ll give you access to the server!

2020 Hacktoberfest

🌐 Hacktoberfest 2020

作为一个规模大且运行时间长的开源项目,如果没有社区的各种贡献——从代码提交到漏洞报告,再到文档更改,以及更多其他方面——Electron 不可能取得如此大的成功。这就是为什么我们认为参与 Hacktoberfest 很重要,因为它可以吸引各种技能水平的开发者加入到这个项目中来。

🌐 As a large and long-running open-source project, Electron wouldn’t have been nearly as successful without all the contributions from its community, from code submissions to bug reports to documentation changes, and much more. That’s why we believe in the importance of participating in Hacktoberfest to usher in a wider community of developers of all skill levels into the project.

其他信息​

🌐 Odds and ends

今年,我们没有一个更大的项目让大家一起参与,但我们希望专注于在 Electron JavaScript 生态系统中提供贡献的机会。

🌐 This year, we don’t have a wider project to give you all to work on, but we’d like to focus on opportunities to contribute across the Electron JavaScript ecosystem.

注意我们各个代码库中标记为 hacktoberfest 的问题,包括主仓库 electron/electron、electron/electronjs.org 网站、electron/fiddle 以及 electron-userland/electron-forge!

🌐 Look out for issues tagged hacktoberfest across our various repositories, including the main electron/electron repository, the electron/electronjs.org website, electron/fiddle, and electron-userland/electron-forge!

附注:如果你感觉特别有冒险精神,我们还有一些带有help wanted标签的积压问题,如果你想挑战更难的内容,可以尝试这些。

🌐 P.S. If you're feeling particularly adventurous, we also have a backlog of issues marked with help wanted tags if you're looking for more of a challenge.

卡住了吗?来和我们聊聊吧!​

🌐 Stuck? Come chat with us!

此外,我们的 Discord 服务器盛大开幕恰逢一年一度最大的开源软件庆典,这也不是巧合。查看 #hacktoberfest 通道,寻求关于你的 Hacktoberfest PR 的帮助。如果你遗漏了,这里是邀请链接!

🌐 Moreover, it’s also no coincidence that the grand opening of our Discord server coincides with the largest celebration of open-source software of the year. Check out the #hacktoberfest channel to ask for help on your Hacktoberfest PR. In case you missed it, here's the invite link again!

Electron 10.0.0

· 9 min read

Electron 10.0.0 已发布!它包括对 Chromium 85、V8 8.5 和 Node.js 12.16 的升级。我们添加了几个新的 API 集成和改进。阅读以下内容了解更多详情!

🌐 Electron 10.0.0 has been released! It includes upgrades to Chromium 85, V8 8.5, and Node.js 12.16. We've added several new API integrations and improvements. Read below for more details!


Electron 团队很高兴地宣布 Electron 10.0.0 已发布!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的 发布网站 下载。此次发布包含了大量升级、修复和新功能。

🌐 The Electron team is excited to announce the release of Electron 10.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. The release is packed with upgrades, fixes, and new features.

在 Electron 10 版本中,我们还对发布说明进行了更改。为了更容易区分 Electron 10 中的全新内容以及 Electron 10 与以前版本之间的变化,我们现在还会包含那些引入到 Electron 10 但已经回移到以前版本的更改。我们希望这能让应用在升级 Electron 时更容易找到新功能和修复的漏洞。

🌐 In the Electron 10 release, we also made a change to our release notes. To make it easier to tell what's brand new in Electron 10 and what may have changed between Electron 10 and past releases, we now also include changes that were introduced to Electron 10, but backported to previous releases. We hope this makes it easier to apps to find new features and bug fixes when upgrading Electron.

我们迫不及待想看看你们用它们能够创造出什么!继续阅读以了解此次发布的详细信息,并请分享你们的任何反馈!

🌐 We can't wait to see what you build with them! Continue reading for details about this release, and please share any feedback you have!

显著变化​

🌐 Notable Changes

  • 添加了 contents.getBackgroundThrottling() 方法和 contents.backgroundThrottling 属性。 [#21036]
  • 在主进程中暴露了 desktopCapturer 模块。#23548
  • 现在可以通过调用 ses.isPersistent() API 来检查给定的 session 是否是持久的。 #22622
  • 解决由于网络 IP 地址更改和 ICE 导致 RTC 通话无法连接的网络问题。(Chromium 问题 1113227)。#24998

请查看 10.0.0 版本说明 以获取完整的新功能和更改列表。

🌐 See the 10.0.0 release notes for a full list of new features and changes.

Electron 成为 OpenJS 基金会影响力项目

· 3 min read

在今天早上的 OpenJS World 上,我们宣布 Electron 已正式从 OpenJS Foundation 的孵化计划毕业,现在成为了 OpenJS Foundation 的影响力项目。

🌐 At OpenJS World this morning, we announced that Electron has officially graduated from the OpenJS Foundation's incubation program, and is now an OpenJS Foundation Impact Project.

Electron 于 2019 年 12 月进入孵化阶段,在蒙特利尔举行的最后一次 OpenJS Foundation 全球大会上。作为一个影响力项目,我们很高兴在 JavaScript 社区中发挥更大的作用,并继续与 OpenJS Foundation 合作。

🌐 Electron entered incubation in December of 2019, at the last OpenJS Foundation global conference in Montreal. We're excited to take a larger role in the JavaScript community as an Impact Project, and continue our partnership with the OpenJS Foundation.


了解更多​

🌐 Learning more

你可以在 OpenJSF 网站 上了解该基金会、其使命以及成员情况。OpenJS 基金会是多个开源 JavaScript 项目的主办方,包括 jQuery、Node.js 和 webpack。它得到了 30 个企业和终端用户成员的支持,包括 GoDaddy、Google、IBM、Intel、Joyent 和 Microsoft。

🌐 You can read up on the foundation, its mission, and its members on the OpenJSF website. The OpenJS Foundation is host to a number of open source JavaScript projects including jQuery, Node.js, and webpack. It's supported by 30 corporate and end-user members, including GoDaddy, Google, IBM, Intel, Joyent, and Microsoft.

Electron 是一个使用网页技术构建跨平台桌面应用的开源框架。想了解更多关于 Electron 背后的人以及他们如何协作的信息,请查看我们的治理页面。

🌐 Electron is an open–source framework for building cross-platform desktop applications with web technologies. To learn more about the humans behind Electron and how they work together, take a look at our Governance page.

要开始使用 Electron 本身,请查看我们的文档。

🌐 To get started with Electron itself, take a peek at our documentation.

谷歌文档季

· 5 min read

Electron 很荣幸能够参与 Google 第二届“文档季”计划,该计划将来自开源组织的导师与技术文档撰写者配对,以改进项目文档。

🌐 Electron is proud to be participating in the second edition of Google's Season of Docs initiative, which pairs mentors from open source organizations with technical writers to improve project documentation.


什么是 Season of Docs?

🌐 What is Season of Docs?

Season of Docs logo

Season of Docs 是一个促进技术文档撰写者与开源社区之间协作的项目,旨在让双方受益。开源维护者利用文档撰写者的技术写作专长来改进其文档的结构和内容,而技术文档撰写者则在导师的指导下加入开源社区。你可以在 Google 的 Season of Docs 网站 上了解更多信息。

🌐 Season of Docs is a program that fosters collaboration between technical writers and open source communities to the benefit of both parties. Open source maintainers utilize the writer's technical writing expertise to improve the structure and content of their documentation, while the technical writer is introduced to an open-source community under the guidance of its mentors. Learn more about it on the Google's Season of Docs website.

这是我们首次参与该计划,我们将指导一名技术写作人员,他将与 Electron 的 Ecosystem Working Group 一起工作,重塑我们文档的大部分内容。你可以在这里了解整个项目的时间表 here。

🌐 For our first time participating in the program, we'll be mentoring a single technical writer who will be working alongside Electron's Ecosystem Working Group to reshape large parts of our documentation. You can learn more about the timeline of the whole project here.

如何注册?

🌐 How do I sign up?

你有兴趣作为技术写作与我们合作吗?首先,请先了解谷歌今年项目的技术写作指南,并查看我们准备的两个项目创意草稿。

🌐 Are you interested in collaborating with us as a technical writer? First, get familiar with Google's tech writer guide for this year's program, and check out the two project idea drafts that we have prepared.

想要被选为 Electron 文档季的技术作家,候选人需要在 6 月 8 日至 7 月 9 日的技术作家申请阶段,在 Google 文档季网站上提交申请。

🌐 In order to be selected as Electron's technical writer for Season of Docs, candidates will need to apply on the Google Season of Docs website during the Technical Writer Application phase that is running from June 8 to July 9..

你的申请应包括一份提案,这是一份书面文件,详细描述你计划在三个月内在 Electron 文档上实现的内容。这份提案可以基于我们的项目创意文档中提到的某个起始点,也可以是全新的内容。不知道从哪里开始?你可以查看去年的被接受提案名单以获得灵感。

🌐 Your application should include a proposal, which is a written document that describes in detail what you plan to achieve on the Electron docs over the course of 3 months. This proposal can either develop on one of the starting points mentioned in our Project Idea doc, or can be something entirely new. Don't know where to start? You can check out last year's list of accepted proposals for inspiration.

除了提案之外,我们还会审查你作为技术写作人员的背景。请附上你的简历,重点突出相关的写作经验,同时提供技术写作样本(这些样本可以是现有文档、教程、博客文章等)。

🌐 Aside from the proposal, we'll also be looking at your background as a technical writer. Please include a copy of your resume with an emphasis on relevant writing experience, as well as technical writing samples (these samples could be existing documentation, tutorial, blog posts, etc.)

如果你想讨论项目提案,给我们发邮件至 season-of-docs@electronjs.org,我们可以从那里开始交流!

🌐 If you want to discuss project proposals, shoot us an email at season-of-docs@electronjs.org and we can chat from there!

参考

🌐 References

Electron 9.0.0

· 8 min read

Electron 9.0.0 已经发布!它包括对 Chromium 83、V8 8.3 和 Node.js 12.14 的升级。我们为拼写检查器功能添加了几个新的 API 集成,启用了 PDF 查看器功能,还有更多更新!

🌐 Electron 9.0.0 has been released! It includes upgrades to Chromium 83, V8 8.3, and Node.js 12.14. We've added several new API integrations for our spellchecker feature, enabled PDF viewer, and much more!


Electron 团队很高兴地宣布 Electron 9.0.0 正式发布!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的发布网站下载。本次发布包含了大量升级、修复和新功能。我们迫不及待想看看你会用它们创造出什么作品!继续阅读以了解本次发布的详细信息,并请分享你的任何反馈!

🌐 The Electron team is excited to announce the release of Electron 9.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. The release is packed with upgrades, fixes, and new features. We can't wait to see what you build with them! Continue reading for details about this release, and please share any feedback you have!

显著变化​

🌐 Notable Changes

  • 拼写检查功能的多项改进。更多详情请参见 #22128 和 #22368。
  • 提高了 Linux 上窗口事件处理器的效率。#23260。
  • 启用 PDF 查看器。 #22131。

请查看 9.0.0 版本说明 以获取完整的新功能和更改列表。

🌐 See the 9.0.0 release notes for a full list of new features and changes.

即将发布的 Electron 版本

· 2 min read

Electron 暂时停止主要版本发布

🌐 Electron is temporarily pausing major releases


发生了什么?​

🌐 What's Happening?

我们的主要版本发布节奏计划与 Chromium 的节奏保持同步,而 Chromium 项目最近决定由于工作计划调整而暂停其发布。这意味着在 Chromium 调整节奏的期间,Electron 也将暂时暂停新的主要版本发布。

🌐 Our major release cadence schedule moves in lockstep with that of Chromium, and the Chromium project has made the recent decision to pause its releases due to adjusted work schedules. This means that for the duration of Chromium's altered cadence, Electron will also temporarily pause new major releases.

我们认为我们的最佳选择是追随 Chromium 的脚步,因此在此期间,Electron 团队将转而全职致力于错误修复、安全性、性能和稳定性。

🌐 We feel that our best choice is to follow in Chromium's footsteps, and so in the interim the Electron team will shift to full-time work on bugfixes, security, performance, and stability.

我们希望确保维护人员和用户的福祉在此期间得到优先考虑,因此我们欢迎你的反馈,并期待恢复正常的发布计划。

🌐 We want to ensure that both our maintainers and our consumers' wellbeing is prioritized during this time, so we welcome your feedback and look forward to returning to our regular release schedule.

欲获取更多更新,请关注我们的推特账号。

🌐 For more updates, please follow our Twitter account.

编辑(2020-03-30):Electron 9 稳定版将以 Chromium M83 为目标,并计划于 2020 年 5 月 19 日发布,以回应 Chromium 的公告 关于跳过 M82 稳定版日期并调整 M83 稳定版日期的通知。

🌐 Edit (2020-03-30): Electron 9 stable will target Chromium M83 and be released on May 19, 2020, in response to Chromium's announcement of skipping the M82 stable date and adjusting the M83 stable date.

Electron 8.0.0

· 10 min read

Electron 8.0.0 已经发布!它包括对 Chromium 80、V8 8.0 和 Node.js 12.13.0 的升级。我们还添加了 Chrome 内置的拼写检查功能,以及更多其他功能!

🌐 Electron 8.0.0 has been released! It includes upgrades to Chromium 80, V8 8.0, and Node.js 12.13.0. We've added Chrome's built-in spellchecker, and much more!


Electron 团队很高兴地宣布 Electron 8.0.0 正式发布!你可以通过 npm 使用 npm install electron@latest 安装,或从我们的发布网站下载。本次发布包含了大量升级、修复和新功能。我们迫不及待想看看你会用它们创造出什么作品!继续阅读以了解本次发布的详细信息,并请分享你的任何反馈!

🌐 The Electron team is excited to announce the release of Electron 8.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. The release is packed with upgrades, fixes, and new features. We can't wait to see what you build with them! Continue reading for details about this release, and please share any feedback you have!

显著变化​

🌐 Notable Changes

  • 已实现使用 Chrome 内置拼写检查功能。更多详情请参见 #20692 和 #21266。
  • IPC 通信现在使用 v8 的结构化克隆算法。这比现有逻辑更快、功能更多且更少意外,对于大型缓冲区和复杂对象带来了约 2 倍的性能提升。小消息的延迟没有显著影响。更多详情请参见 #20214。

请查看8.0.0版本说明以获取新功能和更改的完整列表。

🌐 See the 8.0.0 release notes for a full list of new features and changes.

Electron 加入了 OpenJS 基金会

· 4 min read

在蒙特利尔举行的Node+JS Interactive大会上,OpenJS 基金会宣布已将 Electron 纳入基金会的孵化计划。基金会致力于通过提供一个中立的组织来托管和维持项目,以及共同资助有利于整个社区的活动,从而支持 JavaScript 生态系统和 web 技术的健康发展。

🌐 At Node+JS Interactive in Montreal, the OpenJS Foundation announced that it accepted Electron into the Foundation's incubation program. The Foundation is committed to supporting the healthy growth of the JavaScript ecosystem and web technologies by providing a neutral organization to host and sustain projects, as well as collaboratively fund activities for the benefit of the community at large.

OpenJS 基金会托管了多个开源 JavaScript 项目,包括 jQuery、Node.js 和 webpack。它由 30 个公司和终端用户成员支持,包括 GoDaddy、Google、IBM、Intel、Joyent 和 Microsoft。Electron 是一个开源框架,用于使用 Web 技术构建跨平台桌面应用。

🌐 The OpenJS Foundation is host to a number of open source JavaScript projects including jQuery, Node.js, and webpack. It's supported by 30 corporate and end-user members, including GoDaddy, Google, IBM, Intel, Joyent, and Microsoft. Electron is an open–source framework for building cross-platform desktop applications with web technologies.

这对 Electron 来说是一个激动人心的举措,我们将其视为我们作为开源项目发展的下一步。

🌐 This is an exciting move for Electron, and we see it as a next step in our evolution as an open-source project.


这对开发者意味着什么​

🌐 What this means for developers

Electron 加入 OpenJS 基金会并不会改变 Electron 的制作、发布或使用方式——也不会直接影响使用 Electron 开发应用的开发者。尽管 Electron 最初是在 2013 年由 GitHub 创建的,但目前由许多组织和个人维护。2019 年,Electron 对其治理结构进行了规范,并大力投入于正式化涉及整个项目的决策制定进程。我们相信,有多家组织和开发者对 Electron 进行投资和协作会使项目更强大。

🌐 Electron joining the OpenJS Foundation does not change how Electron is made, released, or used — and does not directly affect developers building applications with Electron. Even though Electron was originally created at GitHub in 2013, it is currently maintained by a number of organizations and individuals. In 2019, Electron codified its governance structure and invested heavily into formalizing how decisions affecting the entire project are made. We believe that having multiple organizations and developers investing in and collaborating on Electron makes the project stronger.

随着我们开源项目日渐成熟,将 Electron 从单一企业实体所有提升到一个专注于支持 Web 和 JavaScript 生态系统的中立基金会是理所当然的下一步。

🌐 Lifting Electron up from being owned by a single corporate entity and moving it into a neutral foundation focused on supporting the web and JavaScript ecosystem is a natural next step as we mature as an open-source project.

了解更多​

🌐 Learning more

你可以在 OpenJSF 网站 上了解基金会、其使命及成员。有关 Electron 被纳入 OpenJSF 孵化计划的更多信息和相关报道,请查看官方新闻稿。想了解更多关于 Electron 背后的人以及他们如何合作的信息,请访问我们的 治理页面。

🌐 You can read up on the foundation, its mission, and its members on the OpenJSF website. For more information and quotes about the acceptance of Electron into the OpenJSF incubation program, check out the official press release. To learn more about the humans behind Electron and how they work together, take a look at our Governance page.

要开始使用 Electron 本身,请查看我们的文档。

🌐 To get started with Electron itself, take a peek at our documentation.

Chromium WebAudio 漏洞修复 (CVE-2019-13720)

· 3 min read

Chrome 中发现了一个高危漏洞,该漏洞会影响所有基于 Chromium 的软件,包括 Electron。

🌐 A High severity vulnerability has been discovered in Chrome which affects all software based on Chromium, including Electron.

此漏洞已被分配编号 CVE-2019-13720。你可以在 Chrome 博客文章 中了解更多相关信息。

🌐 This vulnerability has been assigned CVE-2019-13720. You can read more about it in the Chrome Blog Post.

请注意,Chrome 已报告此漏洞正在被广泛利用,因此强烈建议你尽快升级 Electron。

🌐 Please note that Chrome has reports of this vulnerability being used in the wild so it is strongly recommended you upgrade Electron as soon as possible.


范围​

🌐 Scope

这会影响任何可能运行第三方或不受信任的 JavaScript 的 Electron 应用。

🌐 This affects any Electron application that may run third-party or untrusted JavaScript.

缓解措施​

🌐 Mitigation

受影响的应用应升级到 Electron 的修补版本。

🌐 Affected apps should upgrade to a patched version of Electron.

我们已发布 Electron 的新版本,其中包含针对此漏洞的修复:

🌐 We've published new versions of Electron which include fixes for this vulnerability:

Electron 7.0.1 在公告发布之前就自动包含了上游的修复。Electron 8 同样不受影响。Electron 5 中不存在该漏洞,因此该版本也不受影响。

🌐 Electron 7.0.1 automatically included the fix from upstream, before the announcement was made. Electron 8 is similarly unaffected. The vulnerability did not exist in Electron 5, so that version is also unaffected.

更多信息​

🌐 Further Information

此漏洞由卡巴斯基实验室的安东·伊万诺夫和阿列克谢·库拉耶夫发现,并已向 Chrome 团队报告。Chrome 博客文章可以在 这里 找到。

🌐 This vulnerability was discovered by Anton Ivanov and Alexey Kulaev at Kaspersky Labs and reported to the Chrome team. The Chrome blog post can be found here.

要了解有关保持你的 Electron 应用安全的最佳做法的更多信息,请参阅我们的[安全教程]。

🌐 To learn more about best practices for keeping your Electron apps secure, see our security tutorial.

如果你希望报告 Electron 中的漏洞,请提交 [GitHub 安全咨询]。

🌐 Please file a GitHub Security Advisory if you wish to report a vulnerability in Electron.