部署桌面应用
使用 Ionic 构建桌面应用允许开发者重用 100% 的代码并发布传统的桌面应用,同时仍然可以访问所有原生设备功能,例如推送通知。 本指南假设你熟悉 Electron,并且不会进入 "how" 来构建 Electron 应用。 为此,请查看官方 Electron 指南。
英:Building a desktop app with Ionic allows developers to reuse 100% of their code and ship a traditional desktop app while still having access to all the native device features, like push notifications. This guide assumes familiarity with Electron, and does not go into "how" to build an electron app. For that, check out the official Electron guide.
macOS 应用
要求
在 macOS 应用商店上发布应用有两个硬性要求
英:There are two hard requirements for publishing an app on the macOS app store
- 最新版本 Xcode
- 一个活跃的开发者账户(通过 Apple 开发者门户 100 美元)
发布
Electron 团队提供了有关如何发布适用于 macOS 的应用的详细指南。 请查看 这里的文档。
英:The Electron team has a detailed guide on how to publish an app for macOS. Please review the docs here.
Windows 应用
要求
在 Windows 应用商店上发布应用有四个硬性要求
英:There are four hard requirements for publishing an app on the Windows app store
- Windows 10 周年纪念更新(2016 年 8 月 2 日发布)
- Windows 10 SDK,在这里下载
- 节点
- electron-windows-store CLI
electron-windows-store
可以通过 npm 安装:
英:electron-windows-store
can be installed via npm:
npm install -g electron-windows-store
发布
与 macOS 一样,Electron 有关于如何发布 Windows 应用的详细指南。 请查看 这里的文档
英:Like macOS, Electron has a detailed guide on how to publish an app for Windows. Please review the docs here