Electron 41 已发布!它包括对 Chromium 146.0.7680.65、V8 14.6 和 Node v24.14.0 的升级。
🌐 Electron 41 has been released! It includes upgrades to Chromium 146.0.7680.65, V8 14.6, and Node v24.14.0.
Electron 团队很高兴地宣布发布 Electron 41!你可以通过 npm install electron@latest 使用 npm 安装,或从我们的 发布网站 下载。继续阅读以了解有关此版本的详细信息。
🌐 The Electron team is excited to announce the release of Electron 41! You can install it with npm via npm install electron@latest or download it from our releases website. Continue reading for details about this release.
如果你有任何反馈,请通过 Bluesky 或 Mastodon 与我们分享,或者加入我们的社区 Discord!可以在 Electron 的 问题追踪器 报告漏洞和功能请求。
🌐 If you have any feedback, please share it with us on Bluesky or Mastodon, or join our community Discord! Bugs and feature requests can be reported in Electron's issue tracker.
在发布初始的 41.0.0 版本包之后,我们将一些高优先级的错误整合到了后续的补丁版本中。我们建议在升级到 Electron 41 时安装 41.0.2。
显著变化
🌐 Notable Changes
ASAR 完整性摘要以提升安全性
🌐 ASAR Integrity digest for improved security
自 Electron 41 起,macOS 的 Electron 应用现在可以嵌入其 ASAR 完整性 信息的摘要。这为使用 ASAR 完整性的应用增加了额外的篡改检测层,通过在应用启动时验证完整性信息本身。
🌐 As of Electron 41, macOS Electron apps can now embed a digest of their ASAR Integrity information. This adds an additional layer of tamper detection for apps that use ASAR Integrity by validating the integrity information itself at app launch.
要在你的应用中启用此功能,你可以在 @electron/asar v4.1.0 及以上版本运行以下命令:
🌐 To enable the feature for your app, you can run the following command with @electron/asar v4.1.0 and above:
asar integrity-digest on /path/to/YourApp.app
你之后必须重新签署你的应用。有关更多信息,请参阅 @electron/asar CLI 文档。
🌐 You must re-sign your app afterwards. For more information, see the @electron/asar CLI documentation.
Electron Forge 对此功能的支持计划在不久的将来推出 (electron/forge#4159)。
🌐 Support for this feature in Electron Forge is planned for the near future (electron/forge#4159).
改进的Wayland支持
🌐 Improved Wayland support
在 Wayland(Linux)上,无边框窗口现在具有投影和扩展的调整大小边界。要创建完全无边框且没有装饰的窗口,请在窗口构造函数中设置 hasShadow: false。#49885
🌐 On Wayland (Linux), frameless windows now have drop shadows and extended resize boundaries. To create fully frameless windows with no decorations, set hasShadow: false in the window constructor. #49885
Mitchell Cohen 写了一篇关于最近改进 Electron 对 Linux 上 Wayland 和客户端装饰支持的工作 博客文章。
已添加对 MSIX 自动更新的支持
🌐 Added support for MSIX auto-updating
Electron 团队最近根据 RFC #21 添加了 MSIX 自动更新支持。现在,你可以在更新服务器中同时发布 MSIX 和 Squirrel.Mac,基本上使用相同的 JSON 响应格式。更多信息请参阅 autoUpdater 文档。
🌐 The Electron team recently added MSIX auto-updater support according to RFC #21. You can now ship both MSIX and Squirrel.Mac in your update server essentially with the same JSON response format. See the autoUpdater documentation for more information.
这是由 #49586 在 Electron 41 中添加的,并且也已经回移植到 Electron 39.5.0 (#49585) 和 40.2.0 (#49587)。
🌐 This was added in Electron 41 by #49586 and has also been backported to Electron 39.5.0 (#49585) and 40.2.0 (#49587).