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 发展的是一个日益壮大的开发者和公司社区,他们构建了从 email、chat、Git 应用 到 SQL 分析工具、种子客户端 和 robots 的所有版本。
¥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
-
需要一个图表,帮助你在主进程和渲染进程中可视化应用的内部和外部库依赖。
¥Require graph that helps you visualize your app's internal and external library dependencies in both the main and renderer processes
-
IPC 监视器,用于跟踪并显示应用中进程之间发送和接收的消息
¥IPC monitor that tracks and displays the messages sent and received between the processes in your app
-
事件检查器可显示在应用中通过核心 Electron API(例如窗口、应用和进程)注册的事件和监听器。
¥Event inspector that shows you the events and listeners that are registered in your app on the core Electron APIs such as the window, app, and processes
-
App Linter 可以检查你的应用是否存在常见错误和缺失功能。
¥App Linter that checks your apps for common mistakes and missing functionality
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 基于 ChromeDriver 和 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.
现在有一个新的 community 页面,列出了许多正在开发的优秀 Electron 工具、应用、库和框架。你还可以查看 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: