configuration:’./electron/config.default.js’
config.autoUpdate = {
windows: false, // windows
macOS: false, // macOs Signature verification required
linux: false, // linux
options: {
provider: 'generic', // or github, s3, bintray
url: 'http://kodo.qiniu.com/' // resource dir, end with '/'
},
force: false, // Forced update (when running the software, check the new version and download and install it in the background)
};
example:
options: {
provider: 'generic',
url: 'http://kodo.qiniu.com/electron-egg/'
}
explanation:
url parameter: it is an accessible resource directory (Qiniu Cloud, GitHub, Alibaba Cloud oss, Tencent Cloud cos, etc.).
For example, we put the packaged advanced Software , ‘electron-egg/out /‘ directory ee_windows_2.1.0.exe and latest.yml put two files into the object storage of Qiniu Cloud
# Place directory
http://kodo.qiniu.com/electron-egg/
# After placement
● http://kodo.qiniu.com/electron-egg/electron-egg-windows-1.14.0.exe
● http://kodo.qiniu.com/electron-egg/latest.yml
Test whether your two links can be downloaded or accessed.
If it is accessible, when the upgrade function is triggered, it checks whether the upgrade can be automatically performed (you can check whether the log reports an error).
[
](https://raw.fastgit.org/wallace5303/file-resource/master/electron-egg/electron-egg_windows_1.8.1.exe)