From 48a6b0682ea87ba65401180d679fea66a5c3d9c5 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Wed, 15 Mar 2023 09:24:13 +0800 Subject: [PATCH] docs : add `electron-auto-update` docs (#125) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 草鞋没号 <308487730@qq.com> --- src/components/update/README.zh-CN.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/update/README.zh-CN.md b/src/components/update/README.zh-CN.md index b556c0e..f2c65fc 100644 --- a/src/components/update/README.zh-CN.md +++ b/src/components/update/README.zh-CN.md @@ -14,15 +14,15 @@ npm i electron-updater 在`electron-builder.json5`添加`publish`字段,用来配置更新地址和使用哪种策略作为更新服务 -``` json5 -{ - "publish": { - "provider": "generic", // 提供者、提供商 - "channel": "latest", // 生成yml文件的名称 - "url": "https://foo.com/" //更新地址 - } -} -``` + ``` json5 + { + "publish": { + "provider": "generic", // 提供者、提供商 + "channel": "latest", // 生成yml文件的名称 + "url": "https://foo.com/" //更新地址 + } + } + ``` 更多见 : [electron-builder.json5...](xxx)