docs : add `electron-auto-update` docs (#125)
Co-authored-by: 草鞋没号 <308487730@qq.com>
This commit is contained in:
		
							parent
							
								
									2fc312870c
								
							
						
					
					
						commit
						48a6b0682e
					
				| 
						 | 
					@ -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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue