Skip to main content

Electron 的新功能

· 7 min read

最近 Electron 上有一些有趣的更新和讨论,以下是总结。

🌐 There have been some interesting updates and talks given on Electron recently, here's a roundup.


来源

🌐 Source

v0.32.0 为止,Electron 已经更新至与 Chrome 45 同步。其他更新包括...

🌐 Electron is now up to date with Chrome 45 as of v0.32.0. Other updates include...

更完善的文档

🌐 Better Documentation

new docs

我们已经重新整理并标准化了文档,使其看起来更美观、阅读起来更顺畅。文档还有社区贡献的翻译版本,例如日语和韩语。

🌐 We have restructured and standardized the documentation to look better and read better. There are also community-contributed translations of the documentation, like Japanese and Korean.

相关的拉取请求: electron/electron#2028electron/electron#2533electron/electron#2557electron/electron#2709electron/electron#2725electron/electron#2698electron/electron#2649

🌐 Related pull requests: electron/electron#2028, electron/electron#2533, electron/electron#2557, electron/electron#2709, electron/electron#2725, electron/electron#2698, electron/electron#2649.

Node.js 4.1.0

自从 v0.33.0 Electron 搭载了 Node.js 4.1.0。

🌐 Since v0.33.0 Electron ships with Node.js 4.1.0.

相关的拉取请求: electron/electron#2817

🌐 Related pull request: electron/electron#2817.

node-pre-gyp

依赖 node-pre-gyp 的模块现在可以在从源代码构建时针对 Electron 进行编译。

🌐 Modules relying on node-pre-gyp can now be compiled against Electron when building from source.

相关的拉取请求: mapbox/node-pre-gyp#175

🌐 Related pull request: mapbox/node-pre-gyp#175.

ARM 支持

🌐 ARM Support

Electron 现在提供针对 ARMv7 的 Linux 构建版本。它可以运行在 Chromebook 和 Raspberry Pi 2 等流行平台上。

🌐 Electron now provides builds for Linux on ARMv7. It runs on popular platforms like Chromebook and Raspberry Pi 2.

相关问题: atom/libchromiumcontent#138electron/electron#2094electron/electron#366

🌐 Related issues: atom/libchromiumcontent#138, electron/electron#2094, electron/electron#366.

Yosemite 风格的无框窗口

🌐 Yosemite-style Frameless Window

frameless window

@jaanus 的一个补丁已被合并,该补丁与其他内置的 OS X 应用一样,允许在 OS X Yosemite 及更高版本上创建带有系统交通灯的无框窗口。

🌐 A patch by @jaanus has been merged that, like the other built-in OS X apps, allows creating frameless windows with system traffic lights integrated on OS X Yosemite and later.

相关的拉取请求: electron/electron#2776

🌐 Related pull request: electron/electron#2776.

Google 编程夏令营打印支持

🌐 Google Summer of Code Printing Support

在 Google 夏季编码活动之后,我们合并了 @hokein 的补丁,以改进打印支持,并增加将页面打印成 PDF 文件的功能。

🌐 After the Google Summer of Code we have merged patches by @hokein to improve printing support, and add the ability to print the page into PDF files.

相关问题: electron/electron#2677electron/electron#1935electron/electron#1532electron/electron#805electron/electron#1669electron/electron#1835

🌐 Related issues: electron/electron#2677, electron/electron#1935, electron/electron#1532, electron/electron#805, electron/electron#1669, electron/electron#1835.

Atom

Atom 现在已升级到运行 Chrome 44 的 Electron v0.30.6。升级到 v0.33.0 正在 atom/atom#8779 上进行。

🌐 Atom has now upgraded to Electron v0.30.6 running Chrome 44. An upgrade to v0.33.0 is in progress on atom/atom#8779.

讨论

🌐 Talks

GitHub 用户 Amy PalamountainNordic.js 的一次演讲中对 Electron 做了精彩的介绍。她还创建了 electron-accelerator 库。

🌐 GitHubber Amy Palamountain gave a great introduction to Electron in a talk at Nordic.js. She also created the electron-accelerator library.

使用 Electron 构建原生应用,作者:Amy Palomountain

🌐 Building native applications with Electron by Amy Palomountain

Ben Ogle,同样在 Atom 团队,曾在 YAPC Asia 做过关于 Electron 的演讲:

使用 Web 技术构建桌面应用,作者:Ben Ogle

🌐 Building Desktop Apps with Web Technologies by Ben Ogle

Atom 团队成员 Kevin Sawicki 和其他人最近在 Bay Area Electron 用户组 的聚会上就 Electron 进行了演讲。视频 已经发布,这里有几个:

🌐 Atom team member Kevin Sawicki and others gave talks on Electron at the Bay Are Electron User Group meetup recently. The videos have been posted, here are a couple:

Kevin Sawicki 撰写的 Electron 历史

🌐 The History of Electron by Kevin Sawicki

Ben Gotow 撰写的《让 Web 应用感觉原生》

🌐 Making a web app feel native by Ben Gotow