开始使用
复制一个包含安装步骤和本插件的完整Markdown指南的设置命令。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-updater`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/updater/self-hosted/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
本文档将解释如何运行自己的自动更新服务器。
如果您觉得这个工作有帮助,请考虑支持我的工作,成为我的 Github.
I made a bet to open-source all the code I built here instead of paywalling it. By opening it up instead of fighting and hiding, I believe we can make the world a better place.
Capgo
而不是用收费墙来保护它。通过开放而不是战斗和隐藏,我相信我们可以使世界变得更好。
如果 Capgo 不适合你,那么你可以自行支付费用 __CAPGO_KEEP_0__ 工具,并使其成为一个透明的开放业务。
不适合您,那么就支付您自己的价格并支持一个自力更生的创造者,按照您自己的方式。考虑贡献。功能一致性功能一致性如果您选择使用自己的服务器,您将会失去5分钟的设置流程。
您需要自己实现所有这些功能。
| 功能 | Capgo | 自主托管 |
|---|---|---|
| 更新 | ✅ | 🚧 |
| 自动回滚 | ✅ | 🚧 |
| 更新失败时发送电子邮件 | ✅ | 🚧 |
| 渠道 | ✅ | 🚧 |
| 渠道配置 | ✅ | 🚧 |
| 设备配置 | ✅ | 🚧 |
| 设备配置 | ✅ | 🚧 |
| 渠道配置 | ✅ | 🚧 |
| 自定义 ID | ✅ | 🚧 |
| 自动设置频道 | ✅ | 🚧 |
| API频道 | ✅ | 🚧 |
| 更新统计 | ✅ | 🚧 |
| 下载失败统计 | ✅ | 🚧 |
| 应用使用统计 | ✅ | 🚧 |
| 更新加密 | ✅ | 🚧 |
| 差分 (清单) 更新 | ✅ | ❌ |
请注意,您不能同时使用Capgo云和您的服务器。
选择Auto或手动
标题:选择Auto或手动在自动模式下,Native code处理了一部分逻辑,更新由服务器端决定,这更安全,允许细粒度更新、部分部署到一个设备或组等。
在手动模式下,所有逻辑都由JS处理。
安装Capacitor更新器
标题:安装Capacitor更新器npm install @capgo/capacitor-updaternpx cap sync准备你的包
标题:准备你的包为了将更新发送到你的应用,你需要压缩它。 最好的方法是确保你的压缩包是好的,是使用 Capgo CLI 压缩的。
npx @capgo/cli@latest bundle zip你需要在自己的服务器上服务这个压缩包。
继续从Getting started
标题为“继续从Getting started”如果您正在使用 开始使用 来规划迁移和企业运营,连接它与 使用@capgo/capacitor-updater 为在使用@capgo/capacitor-updater中native能力的 Capgo 企业版 为 Capgo 企业产品流程 Ionic 企业插件替代品 为 Ionic 企业插件替代品的产品流程 Capgo 替代品 为 Capgo 替代品的产品流程,以及 Capgo 咨询 为 Capgo 咨询的产品流程。