在底层,Chrome 用户界面 (UI) 的非网站部分,例如工具栏、选项卡或按钮,是使用名为 Views 的框架构建的。 Views API 提案将这个框架的一部分作为 Electron 中的 JavaScript 类引入,最终目标是允许开发人员为其 Electron 应用程序创建非 Web UI 元素。这将避免应用程序不得不将网页内容集中在一起。
为了让 Electron 开发者有一个更友好的开发体验,我们新建了 Electron Forge,一个多合一的解决方案,将所有这些现有的工具整合到一个界面中。 一体化的解决方案,将所有这些现有的工具整合到一个单一的界面中。虽然 Forge 自 2017 年以来一直在开发,但该项目在过去几年中一直处于停顿状态。然而,考虑到社区对 Electron 构建工具状态的反馈,我们一直在努力发布下一代稳定的 Forge 主要版本。
Electron Forge 6 有一流的 TypeScript 和 Webpack 支持。 还有一个可扩展的 API,它允许开发者创建自己的插件和安装程序。
Electron 20.0.0 已发布!它包括升级到 Chromium 104, V8 10.4, 和 Node.js 16.15.0。请阅读下文了解更多详情!
Electron 团队很高兴发布了 Electron 20.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. 继续阅读有关此版本的详细信息,并请分享您的任何反馈!
Electron 19.0.0 已发布!它包括升级到 Chromium 102, V8 10.2, 和 Node.js 16.14.2。请阅读下文了解更多详情!
Electron 团队很高兴发布了 Electron 19.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. 继续阅读有关此版本的详细信息,并请分享您的任何反馈!
Electron is changing its primary S3 bucket, you may need to update your build scripts
What is happening?
A significant amount of Electron's build artifacts are uploaded to an S3 bucket called gh-contractor-zcbenz. As part of ongoing infrastructure/ownership migrations that started way back in 2020, we will be changing everything that used gh-contractor-zcbenz from its old home in S3 to a new storage system hosted at https://artifacts.electronjs.org. The path prefix that most of our assets use is changing slightly as well. Examples are included below:
Again, the hostname changed and the /atom-shell prefix was changed.
How might this impact you?
Anyone using standard build tooling such as electron-rebuild, electron-packager or @electron/get won't have to do anything. This should be the majority of people.
For anyone directly referencing the S3 bucket, you must update your reference to point at the hostname and update the path as well.
What about existing data?
Most data that existed on the gh-contractor-zcbenz bucket has been cloned into the new storage system. This means all debug symbols and all headers have been copied. If you relied on some data in that bucket that hasn't been copied over please raise an issue in electron/electron and let us know.
The current gh-contractor-zcbenz S3 bucket will not be actively deleted. However, we can't guarantee how long that bucket will be left alive. We strongly recommend updating to target the new bucket as soon as possible.
Electron 18.0.0 已发布!它包括升级到 Chromium 100, V8 10.0, 和 Node.js 16.13.2。请阅读下文了解更多详情!
Electron 团队很高兴发布了 Electron 18.0.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. 继续阅读有关此版本的详细信息,并请分享您的任何反馈!
Added a first-instance-ack event to the app.requestSingleInstanceLock() flow, allowing users to seamlessly transmit data from the first instance to the second instance. #31460