开始
复制一个包含安装步骤和完整 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 扶助者.
我打赌在这里开源所有的 code 代替付费墙。通过开放而不是斗争和隐藏,我认为我们可以使世界变得更好。
此外,我希望专注于 Capgo 工具,并使其成为一个开放和透明的企业。
但要使其成为可能,我们所有人都必须做出贡献,包括您 🥹。
If Capgo 不适合你,那么就支付你自己的价格并 在你自己的条件下支持一个自筹资金的创造者。 考虑贡献
你需要自己实现所有这些功能。
功能
| __CAPGO_KEEP_0__ | Capgo | 更新 |
|---|---|---|
| Self hosted | ✅ | 🚧 |
| 自动恢复 | ✅ | 🚧 |
| 下载失败时发送电子邮件 | ✅ | 🚧 |
| 频道 | ✅ | 🚧 |
| 频道覆盖 | ✅ | 🚧 |
| 设备覆盖 | ✅ | 🚧 |
| 频道设置 | ✅ | 🚧 |
| 设备设置 | ✅ | 🚧 |
| 自定义 ID | ✅ | 🚧 |
| 自动设置频道 | ✅ | 🚧 |
| API 频道 | ✅ | 🚧 |
| 更新统计 | ✅ | 🚧 |
| 下载失败统计 | ✅ | 🚧 |
| App 使用统计 | ✅ | 🚧 |
| 更新加密 | ✅ | 🚧 |
| Delta (清单)更新 | ✅ | ❌ |
请注意,您不能同时使用 Capgo 云和您的服务器。
请选择 Auto 和 Manual 之间
选择 Auto 或手动在自动模式下,部分逻辑由原生code处理,更新由服务器决定,这更安全,允许细粒度更新,部分部署到一个设备或组等。
在手动模式下,所有逻辑由JS处理。
安装Capacitor更新器
安装Capacitor更新器npm install @capgo/capacitor-updaternpx cap sync为了将更新发送到你的应用,你需要压缩它。 最好的方法是使用__CAPGO_KEEP_0____CAPGO_KEEP_1__来压缩你的打包文件。
__CAPGO_KEEP_0__To send updates to your app, you need to zip it. The best way to be certain your zip is good is to use the Capgo CLI for zipping.
npx @capgo/cli@latest bundle zip您需要在自己的服务器上服务这个zip文件。
继续从Getting started
继续从 Getting started如果您正在使用 Getting started 来规划迁移和企业运营,连接它与 使用 @capgo/capacitor-updater 对于在使用 @capgo/capacitor-updater 中的原生能力 Capgo Enterprise 对于在 Capgo Enterprise 中的产品工作流 Ionic Enterprise Plugin Alternatives 对于在 Ionic Enterprise Plugin Alternatives 中的产品工作流 Capgo Alternatives 对于在 Capgo Alternatives 中的产品工作流 Capgo 咨询服务 为 Capgo 咨询服务中的产品工作流程