Electron 1.0
在过去的两年里,Electron 帮助开发者使用 HTML、CSS 和 JavaScript 构建跨平台的桌面应用。现在,我们很高兴与大家分享我们的框架及其社区取得的一个重要里程碑。Electron 1.0 现已在 electronjs.org 发布。
🌐 For the last two years, Electron has helped developers build cross platform desktop apps using HTML, CSS, and JavaScript. Now we're excited to share a major milestone for our framework and for the community that created it. The release of Electron 1.0 is now available from electronjs.org.

Electron 1.0 代表了 API 稳定性和成熟度的一个重要里程碑。这个版本允许你在 Windows、Mac 和 Linux 上构建真正本地体验的应用。借助新的文档、新工具以及引导你了解 Electron API 的新应用,构建 Electron 应用比以往任何时候都更加容易。
🌐 Electron 1.0 represents a major milestone in API stability and maturity. This release allows you to build apps that act and feel truly native on Windows, Mac, and Linux. Building Electron apps is easier than ever with new docs, new tools, and a new app to walk you through the Electron APIs.
如果你准备好创建你的第一个 Electron 应用,这里有一个 快速入门指南 可以帮助你入门。
🌐 If you're ready to build your very first Electron app, here's a quick start guide to help you get started.
我们期待看到你接下来使用 Electron 构建的作品。
🌐 We are excited to see what you build next with Electron.
Electron 路径
🌐 Electron's Path
我们在两年多前推出Atom时发布了Electron。Electron,当时被称为Atom Shell,是我们构建Atom的基础框架。那时候,Atom是推动Electron提供各项功能和特性的动力,因为我们在努力发布最初的Atom版本。
🌐 We released Electron when we launched Atom a little over two years ago. Electron, then known as Atom Shell, was the framework we'd built Atom on top of. In those days, Atom was the driving force behind the features and functionalities that Electron provided as we pushed to get the initial Atom release out.
现在,Electron 的使用者社区正在不断壮大,包括开发者和公司,他们正在构建从 电子邮件、聊天、Git 应用 到 SQL 分析工具、种子客户端、机器人 的各种项目。
🌐 Now driving Electron is a growing community of developers and companies building everything from email, chat, and Git apps to SQL analytics tools, torrent clients, and robots.
在过去的两年里,我们看到公司和开源项目都选择 Electron 作为其应用的基础。仅在去年,Electron 的下载量就超过了 120 万次。这里列出了一些出色的 Electron 应用,如果其中还没有你自己的应用,也可以添加进去。
🌐 In these last two years we've seen both companies and open source projects choose Electron as the foundation for their apps. Just in the past year, Electron has been downloaded over 1.2 million times. Take a tour of some of the amazing Electron apps and add your own if it isn't already there.

Electron API 演示
🌐 Electron API Demos
随着 1.0 版本的发布,我们也推出了一款新应用,帮助你探索 Electron API,并了解如何让你的 Electron 应用更本地化。Electron API 演示 应用包含代码示例,帮助你启动应用,并提供有效使用 Electron API 的技巧。
🌐 Along with the 1.0 release, we're releasing a new app to help you explore the Electron APIs and learn more about how to make your Electron app feel native. The Electron API Demos app contains code snippets to help you get your app started and tips on effectively using the Electron APIs.
Devtron
我们还新增了一个扩展,以帮助你调试 Electron 应用。Devtron 是一个开源扩展,用于 Chrome 开发者工具,旨在帮助你检查、调试和排除 Electron 应用的问题。
🌐 We've also added a new extension to help you debug your Electron apps. Devtron is an open-source extension to the Chrome Developer Tools designed to help you inspect, debug, and troubleshoot your Electron app.
功能
🌐 Features
- 需要图表,帮助你可视化应用在主进程和渲染进程中的内部和外部库依赖
- IPC 监视器,用于跟踪并显示应用中各进程之间发送和接收的消息
- 事件检查器,显示在你的应用中注册的事件和监听器,这些事件和监听器存在于核心 Electron API 上,例如窗口、应用和进程
- 应用检测器,检查你的应用是否存在常见错误和缺失的功能
Spectron
最后,我们将发布 Spectron 的新版本,这是用于 Electron 应用的集成测试框架。
🌐 Finally, we're releasing a new version of Spectron, the integration testing framework for Electron apps.
Spectron 3.0 对整个 Electron API 提供全面支持,使你能够更快速地编写测试,以验证应用在各种场景和环境中的行为。Spectron 基于 Chrome驱动 和 WebDriverIO,因此它还提供了完整的页面导航、用户输入和 JavaScript 执行的 API。
🌐 Spectron 3.0 has comprehensive support for the entire Electron API allowing you to more quickly write tests that verify your application's behavior in various scenarios and environments. Spectron is based on ChromeDriver and WebDriverIO so it also has full APIs for page navigation, user input, and JavaScript execution.
社区
🌐 Community
Electron 1.0 是数百名开发者共同努力的结果。在核心框架之外,还发布了数百个库和工具,以使构建、打包和部署 Electron 应用更加容易。
🌐 Electron 1.0 is the result of a community effort by hundreds of developers. Outside of the core framework, there have been hundreds of libraries and tools released to make building, packaging, and deploying Electron apps easier.
现在有一个新的 社区 页面,列出了许多正在开发的很棒的 Electron 工具、应用、库和框架。你也可以查看 电子 和 Electron 用户层 组织,了解一些这些出色的项目。
🌐 There is now a new community page that lists many of the awesome Electron tools, apps, libraries, and frameworks being developed. You can also check out the Electron and Electron Userland organizations to see some of these fantastic projects.
刚接触 Electron?观看 Electron 1.0 入门视频:
🌐 New to Electron? Watch the Electron 1.0 intro video:


