tweak the updates guide
This commit is contained in:
		
					parent
					
						
							
								78c87d4bd3
							
						
					
				
			
			
				commit
				
					
						1731359a17
					
				
			
		
					 1 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
					@ -12,9 +12,10 @@ To get started, you first need to deploy a server that the
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Depending on your needs, you can choose from one of these:
 | 
					Depending on your needs, you can choose from one of these:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- [Hazel](https://github.com/zeit/hazel) – Pulls new releases from 
 | 
					- [Hazel](https://github.com/zeit/hazel) – Simple update server for open-source 
 | 
				
			||||||
[GitHub Releases](https://help.github.com/articles/creating-releases/) and can 
 | 
					apps. Pulls from 
 | 
				
			||||||
be deployed for free on [Now](https://zeit.co/now).
 | 
					[GitHub Releases](https://help.github.com/articles/creating-releases/) 
 | 
				
			||||||
 | 
					and can be deployed for free on [Now](https://zeit.co/now).
 | 
				
			||||||
- [Nuts](https://github.com/GitbookIO/nuts) – Also uses 
 | 
					- [Nuts](https://github.com/GitbookIO/nuts) – Also uses 
 | 
				
			||||||
[GitHub Releases](https://help.github.com/articles/creating-releases/), 
 | 
					[GitHub Releases](https://help.github.com/articles/creating-releases/), 
 | 
				
			||||||
but caches app updates on disk and supports private repositories.
 | 
					but caches app updates on disk and supports private repositories.
 | 
				
			||||||
| 
						 | 
					@ -34,7 +35,7 @@ your packaged app, and not in development. You can use
 | 
				
			||||||
the environment.
 | 
					the environment.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
const { app, autoUpdater, dialog } = require('electron')
 | 
					const {app, autoUpdater, dialog} = require('electron')
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Next, construct the URL of the update server and tell 
 | 
					Next, construct the URL of the update server and tell 
 | 
				
			||||||
| 
						 | 
					@ -47,7 +48,7 @@ const feed = `${server}/update/${process.platform}/${app.getVersion()}`
 | 
				
			||||||
autoUpdater.setFeedURL(feed)
 | 
					autoUpdater.setFeedURL(feed)
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
As the final step, check for updates (the example below will check every minute):
 | 
					As the final step, check for updates. The example below will check every minute:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
setInterval(() => {
 | 
					setInterval(() => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue