Update to use Squirrel.Mac that supports CDN releases
This commit is contained in:
parent
7e2f7602c1
commit
6318cd781d
8 changed files with 114 additions and 16 deletions
|
@ -17,7 +17,15 @@ class AutoUpdater extends EventEmitter {
|
|||
return this.updateURL
|
||||
}
|
||||
|
||||
setFeedURL (updateURL, headers) {
|
||||
setFeedURL (options) {
|
||||
let updateURL
|
||||
if (typeof options === 'string') {
|
||||
updateURL = options
|
||||
} else if (typeof options === 'object' && typeof options.url === 'string') {
|
||||
updateURL = options.url
|
||||
} else {
|
||||
throw new Error('Expected options.url to be a string but none was provided')
|
||||
}
|
||||
this.updateURL = updateURL
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue