Electron 的 Mac 应用商店和 Windows 自动更新程序
最近,Electron 增加了两个令人兴奋的功能:兼容 Mac 应用商店的版本和内置的 Windows 自动更新器。
🌐 Recently Electron added two exciting features: a Mac App Store compatible build and a built-in Windows auto updater.
Mac App Store 支持
🌐 Mac App Store Support
截至 v0.34.0,每个 Electron 版本都包含一个与 Mac App Store 兼容的构建版本。以前,使用 Electron 构建的应用无法符合苹果 Mac App Store 的要求。这些要求大多与使用私有 API 有关。为了将 Electron 沙箱化以符合这些要求,需要移除两个模块:
🌐 As of v0.34.0 each Electron release includes a build compatible with the Mac App Store. Previously an application built on Electron would not comply with Apple's requirements for the Mac App Store. Most of these requirements are related to the use of private APIs. In order to sandbox Electron in such a way that it complies with the requirements two modules needed to be removed:
crash-reporterauto-updater
此外,在检测 DNS 更改、视频捕获和辅助功能方面,一些行为也发生了变化。你可以在文档中阅读有关这些更改以及向 Mac App Store 提交你的应用的更多信息。可以在Electron 发布页面找到这些分发版本,前缀为 mas-。
🌐 Additionally some behaviors have changed with respect to detecting DNS changes, video capture and accessibility features. You can read more about the changes and submitting your app to the Mac App store in the documentation. The distributions can be found on the Electron releases page, prefixed with mas-.
相关的拉取请求: electron/electron#3108, electron/electron#2920
🌐 Related Pull Requests: electron/electron#3108, electron/electron#2920
Windows 自动更新程序
🌐 Windows Auto Updater
在 Electron v0.34.1 中,auto-updater 模块得到了改进,以便与 Squirrel.Windows 一起使用。这意味着 Electron 提供了在 OS X 和 Windows 上轻松自动更新应用的方法。你可以在文档中阅读更多关于在 Windows 上为应用配置自动更新 的信息。
🌐 In Electron v0.34.1 the auto-updater module was improved in order to work with Squirrel.Windows. This means that Electron ships with easy ways for auto updating your app on both OS X and Windows. You can read more on setting up your app for auto updating on Windows in the documentation.
相关拉取请求:electron/electron#1984
🌐 Related Pull Request: electron/electron#1984