Skip to content

其他桌面更新器 ​

这些协议与原生 JSON check 并行:更新器拉 listing 文档;官方 SDK 不读取它们。缺 listing、未知文档名 → 纯文本 404。钉死 os/arch/channel 的规则见 商店订阅。

控制台统一入口:项目 设置 → 商店协议 → 新建上架。

更新器protocol填进更新器的地址
Squirrelsquirrel{listing}/RELEASES(路径大小写敏感,必须是 RELEASES)
ClickOnceclickonce{listing}/MyApp.application(必须以 .application 结尾)
AppImageUpdateappimage{listing}/latest.zsync(必须以 .zsync 结尾)
WinGet REST 源wingetlisting 根;文档 information、manifestSearch、packageManifests
MSIX / App Installermsix{listing}/app.appinstaller(必须以 .appinstaller 结尾)

把 https://updates.example.com 与 myapp / listing slug 换成控制台给出的值。

text
https://updates.example.com/api/v1/projects/myapp/store/squirrel/stable/RELEASES
text
https://updates.example.com/api/v1/projects/myapp/store/clickonce/stable/MyApp.application
text
https://updates.example.com/api/v1/projects/myapp/store/appimage/stable/latest.zsync
text
https://updates.example.com/api/v1/projects/myapp/store/winget/stable
text
https://updates.example.com/api/v1/projects/myapp/store/msix/stable/app.appinstaller

WinGet 的 PackageIdentifier 放在 listing identifiers。MSIX 可用 identifiers appinstaller_uri 覆盖根 Uri。Squirrel 的 RELEASES 用相对文件名;私有签名 URL 不写入 RELEASES 行。

故障 ​

纯文本 404:listing 不存在、协议关闭、文档名不符合上表。鉴权失败 401 UNAUTHORIZED未认证或会话过期。

相关:Electron、Sparkle、Tauri。