docs : add `electron-auto-update` docs (#125)

Co-authored-by: 草鞋没号 <308487730@qq.com>
This commit is contained in:
Jimmy 2023-03-15 09:24:13 +08:00 committed by GitHub
parent 2fc312870c
commit 48a6b0682e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -14,15 +14,15 @@ npm i electron-updater
在`electron-builder.json5`添加`publish`字段,用来配置更新地址和使用哪种策略作为更新服务 在`electron-builder.json5`添加`publish`字段,用来配置更新地址和使用哪种策略作为更新服务
``` json5 ``` json5
{ {
"publish": { "publish": {
"provider": "generic", // 提供者、提供商 "provider": "generic", // 提供者、提供商
"channel": "latest", // 生成yml文件的名称 "channel": "latest", // 生成yml文件的名称
"url": "https://foo.com/" //更新地址 "url": "https://foo.com/" //更新地址
} }
} }
``` ```
更多见 : [electron-builder.json5...](xxx) 更多见 : [electron-builder.json5...](xxx)