Electron 11 正式發佈:支持蘋果 M1 芯片

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"本月17日,Electron 11.0.0正式發佈了。該版本包括對Chromium 87、V8 8.7和Node.js 12.18.3的升級。我們還添加了對Apple silicon的支持和一些常規改進。請閱讀本文了解升級細節!"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Electron團隊很高興發佈了Electron 11.0.0版本!你可以使用npm install electro@latest命令,通過npm安裝它,或從我們的"},{"type":"link","attrs":{"href":"https:\/\/electronjs.org\/releases\/stable","title":"xxx","type":null},"content":[{"type":"text","text":"發行版網站"}]},{"type":"text","text":"下載。該版本添加了對Apple M1硬件的全新支持,還有一些修復和更新。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我們迫不及待想看到大家使用新版本的體驗!請與我們分享你的任何反饋!"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"主要更改"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"棧更改"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Chromium 87.0.4280.47"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/developers.google.com\/web\/updates\/2020\/10\/nic86","title":"xxx","type":null},"content":[{"type":"text","text":"Chrome 86的新特性"}]}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/developers.google.com\/web\/updates\/2020\/11\/nic87","title":"xxx","type":null},"content":[{"type":"text","text":"Chrome 87的新特性"}]}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Node.js 12.18.3"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/nodejs.org\/en\/blog\/release\/v12.18.3\/","title":"xxx","type":null},"content":[{"type":"text","text":"Node 12.18.3博客文章"}]}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/nodejs.org\/en\/blog\/release\/v12.17.0\/","title":"xxx","type":null},"content":[{"type":"text","text":"Node 12.7.0博客文章"}]}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"V8 8.7"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/v8.dev\/blog\/v8-release-86","title":"xxx","type":null},"content":[{"type":"text","text":"V8 8.6博客文章"}]}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/v8.dev\/blog\/v8-release-87","title":"xxx","type":null},"content":[{"type":"text","text":"V8 8.7博客文章"}]}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"亮點特性"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"支持蘋果M1:11月10日,蘋果發佈了他們全新的M1芯片系列,這些芯片安裝在了近日推出的多款Mac中。從Electron 11開始,Electron將爲Intel Macs(x64)和蘋果新推出的M1硬件(arm64)分別發佈獨立版本的Electron。你可以在此處瞭解關於讓Electron應用在蘋果的M1硬件上運行的"},{"type":"link","attrs":{"href":"https:\/\/www.electronjs.org\/blog\/apple-silicon","title":"xxx","type":null},"content":[{"type":"text","text":"更多信息"}]},{"type":"text","text":"。#24545"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"向crashReport參數添加了V8崩潰消息和位置信息。#24771"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"改進了通過context bridge發送寬對象的性能。#24671"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"有關新特性和更改的完整列表,請參見"},{"type":"link","attrs":{"href":"https:\/\/github.com\/electron\/electron\/releases\/tag\/v11.0.0","title":"xxx","type":null},"content":[{"type":"text","text":"11.0.0發行說明"}]},{"type":"text","text":"。"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"重大更改"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"移除了一些實驗性API:BrowserView.{fromId, fromWebContents, getAllViews}和BrowserView的id屬性。#23578"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"可在"},{"type":"link","attrs":{"href":"https:\/\/github.com\/electron\/electron\/blob\/master\/docs\/breaking-changes.md","title":"xxx","type":null},"content":[{"type":"text","text":"“計劃的重大更改”"}]},{"type":"text","text":"頁面上找到有關這些更改和未來更改的更多信息。"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"API更改"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"添加了app.getApplicationInfoForProtocol()API,該API返回有關處理特定協議的應用的詳細信息。#24112"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"添加了app.createThumbnailFromPath()API,該API在給定文件路徑和最大縮略圖大小的情況下返回文件的預覽圖像。#24802"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"添加了webContents.forcefullyCrashRenderer()以強制終止渲染器進程,以幫助恢復掛起的渲染器。#25756"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"對8.x.y的支持終止"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"根據項目的"},{"type":"link","attrs":{"href":"https:\/\/electronjs.org\/docs\/tutorial\/support#supported-versions","title":"xxx","type":null},"content":[{"type":"text","text":"支持政策"}]},{"type":"text","text":",Electron 8.x.y已達到支持終止階段。我們鼓勵開發人員和應用程序升級到更高版本的Electron。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"下一步計劃"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在短期內,團隊的核心工作依舊是保持構成Electron的主要組件(包括Chromium、Node和V8)跟上最新版本。儘管我們並不會對發佈日期做出保證,但我們的計劃是大約每個季度發佈一個Electron的新主要版本,其中帶有這些組件的新版本。暫定的"},{"type":"link","attrs":{"href":"https:\/\/electronjs.org\/docs\/tutorial\/electron-timelines","title":"xxx","type":null},"content":[{"type":"text","text":"12.0.0時間表"}]},{"type":"text","text":"規劃了Electron 12.0開發生命週期中的關鍵日期。另請參閱我們的"},{"type":"link","attrs":{"href":"https:\/\/electronjs.org\/docs\/tutorial\/electron-versioning","title":"xxx","type":null},"content":[{"type":"text","text":"版本控制文檔"}]},{"type":"text","text":",以獲取有關Electron中版本控制的更多細節。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"有關即將推出的Electron版本中計劃的重大更改的信息,請參閱我們計劃中的"},{"type":"link","attrs":{"href":"https:\/\/github.com\/electron\/electron\/blob\/master\/docs\/breaking-changes.md","title":"xxx","type":null},"content":[{"type":"text","text":"重大更改文檔"}]},{"type":"text","text":"。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"棄用remote模塊的持續工作"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我們在Electron 9中開始了移除remote模塊的工作。我們計劃在Electron 14中移除遠程模塊。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"閱讀並關注此"},{"type":"link","attrs":{"href":"https:\/\/github.com\/electron\/electron\/issues\/21408","title":"xxx","type":null},"content":[{"type":"text","text":"問題"}]},{"type":"text","text":",以獲取有關棄用的完整計劃和詳細信息。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"要求原生Node模塊爲Context Aware或N-API的最後步驟(在Electron 12中)"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"從Electron 6開始我們就一直在爲“在渲染器進程中加載​​的Node模塊必須是N-API或Context Aware的”這一要求做準備。實現這一更改可增強安全性、提高性能並減少維護工作量。該計劃的最後一步是在Electron 12中禁用渲染進程重用。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"閱讀並關注"},{"type":"link","attrs":{"href":"https:\/\/github.com\/electron\/electron\/issues\/18397","title":"xxx","type":null},"content":[{"type":"text","text":"此問題"}]},{"type":"text","text":"以獲取完整細節,包括建議的時間表。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"原文鏈接:"},{"type":"link","attrs":{"href":"https:\/\/www.electronjs.org\/blog\/electron-11-0","title":"","type":null},"content":[{"type":"text","text":"Electron 11 正式發佈"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章