Merge branch 'main' into main
This commit is contained in:
		
						commit
						75793273c7
					
				| 
						 | 
				
			
			@ -70,10 +70,10 @@ export default {
 | 
			
		|||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 🔧Additional features
 | 
			
		||||
## 🔧 Additional features
 | 
			
		||||
 | 
			
		||||
1. electron-auto-update([read it docs](src/components/update/README.md));
 | 
			
		||||
1. playwright;
 | 
			
		||||
1. electron-updater 👉 [see docs](src/components/update/README.md)
 | 
			
		||||
1. playwright
 | 
			
		||||
 | 
			
		||||
## ❔ FAQ
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,10 +67,10 @@ export default {
 | 
			
		|||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 🔧额外的功能
 | 
			
		||||
## 🔧 额外的功能
 | 
			
		||||
 | 
			
		||||
1. Electron自动更新([阅读文档](src/components/update/README.zh-CN.md));
 | 
			
		||||
2. Playwright测试;
 | 
			
		||||
1. Electron 自动更新 👉 [阅读文档](src/components/update/README.zh-CN.md)
 | 
			
		||||
2. Playwright 测试
 | 
			
		||||
 | 
			
		||||
## ❔ FAQ
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,9 +35,9 @@
 | 
			
		|||
    "allowToChangeInstallationDirectory": true,
 | 
			
		||||
    "deleteAppDataOnUninstall": false
 | 
			
		||||
  },
 | 
			
		||||
  publish:{
 | 
			
		||||
    provider: 'generic', 
 | 
			
		||||
    channel: 'latest',
 | 
			
		||||
    url: 'https://github.com/electron-vite/electron-vite-react/releases/download/v0.9.9/',
 | 
			
		||||
  "publish": {
 | 
			
		||||
    "provider": "generic",
 | 
			
		||||
    "channel": "latest",
 | 
			
		||||
    "url": "https://github.com/electron-vite/electron-vite-react/releases/download/v0.9.9/"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
# electron-auto-update
 | 
			
		||||
# electron-updater
 | 
			
		||||
 | 
			
		||||
English | [简体中文](README.zh-CN.md)
 | 
			
		||||
 | 
			
		||||
Use `electron-updater` to realize the update detection, download and installation of the electric program.
 | 
			
		||||
> Use `electron-updater` to realize the update detection, download and installation of the electric program.
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
npm i electron-updater
 | 
			
		||||
| 
						 | 
				
			
			@ -14,11 +14,13 @@ npm i electron-updater
 | 
			
		|||
 | 
			
		||||
   Add a `publish` field to `electron-builder.json5` for configuring the update address and which strategy to use as the update service.
 | 
			
		||||
 | 
			
		||||
   ```json
 | 
			
		||||
     publish:{ 
 | 
			
		||||
       provider: 'generic', 
 | 
			
		||||
       channel: 'latest',
 | 
			
		||||
       url: 'https://github.com/xxxx/',
 | 
			
		||||
   ``` json5
 | 
			
		||||
   {
 | 
			
		||||
      "publish": {
 | 
			
		||||
         "provider": "generic",
 | 
			
		||||
         "channel": "latest",
 | 
			
		||||
         "url": "https://foo.com/"
 | 
			
		||||
      }
 | 
			
		||||
   }
 | 
			
		||||
   ```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,13 +14,15 @@ npm i electron-updater
 | 
			
		|||
 | 
			
		||||
   在`electron-builder.json5`添加`publish`字段,用来配置更新地址和使用哪种策略作为更新服务
 | 
			
		||||
 | 
			
		||||
``` json
 | 
			
		||||
  publish:{ 
 | 
			
		||||
    provider: 'generic',  //提供者、提供商
 | 
			
		||||
    channel: 'latest',//生成yml文件的名称
 | 
			
		||||
    url: 'https://github.com/xxxx/',//更新地址
 | 
			
		||||
    ``` json5
 | 
			
		||||
    {
 | 
			
		||||
      "publish": {
 | 
			
		||||
        "provider": "generic",    // 提供者、提供商
 | 
			
		||||
        "channel": "latest",      // 生成yml文件的名称
 | 
			
		||||
        "url": "https://foo.com/" //更新地址
 | 
			
		||||
      }
 | 
			
		||||
```
 | 
			
		||||
    }
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
更多见 : [electron-builder.json5...](xxx)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue