开始使用
复制一个包含安装步骤和本插件的完整 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 工具,并使其成为一个开放透明的业务。
Furthermore, I want to focus on Capgo tooling, and make it an open and transparent business.
为了使它成为可能,我们所有人都需要做出自己的贡献,包括你 🥹。
如果 Capgo 不适合你,那么就支付你自己的费用并 自行搭建一个Maker 按照你的条件
功能一致性
标题:功能一致性如果你选择使用自己的服务器,你会失去5分钟的设置流程。
你需要自己实现所有这些功能。
| 功能 | Capgo | 自建 |
|---|---|---|
| 更新 | ✅ | 🚧 |
| 自动还原 | ✅ | 🚧 |
| 邮件警报 | ✅ | 🚧 |
| 频道 | ✅ | 🚧 |
| 频道覆盖 | ✅ | 🚧 |
| 设备覆盖 | ✅ | 🚧 |
| 频道设置 | ✅ | 🚧 |
| 设备设置 | ✅ | 🚧 |
| 自定义 ID | ✅ | 🚧 |
| 自动设置频道 | ✅ | 🚧 |
| API 频道 | ✅ | 🚧 |
| 更新统计 | ✅ | 🚧 |
| 下载统计失败 | ✅ | 🚧 |
| 应用程序使用统计 | ✅ | 🚧 |
| 更新加密 | ✅ | 🚧 |
| 差异(manifest)更新 | ✅ | ❌ |
请注意,您不能同时使用Capgo云和您的服务器。
选择 Auto 和手动
标题:选择 Auto 和手动在 Auto 模式下,Native code 的部分逻辑由服务器端处理,更新由服务器端决定,这更安全,允许精细的更新,部分部署到一个设备或组等。
在手动模式下,所有逻辑都由 JS 处理。
安装 Capacitor 更新器
标题:安装 Capacitor 更新器npm install @capgo/capacitor-updaternpx cap sync准备你的打包
标题:准备你的打包为了将更新发送到您的应用程序,您需要将其打包成zip文件。 确保您的zip文件正确的最好方法是使用 Capgo CLI 进行打包。
npx @capgo/cli@latest bundle zip您需要在自己的服务器上托管此zip文件。