configuration:’./electron/config.default.js’

    1. config.autoUpdate = {
    2. windows: false, // windows
    3. macOS: false, // macOs Signature verification required
    4. linux: false, // linux
    5. options: {
    6. provider: 'generic', // or github, s3, bintray
    7. url: 'http://kodo.qiniu.com/' // resource dir, end with '/'
    8. },
    9. force: false, // Forced update (when running the software, check the new version and download and install it in the background)
    10. };

    example:

    1. options: {
    2. provider: 'generic',
    3. url: 'http://kodo.qiniu.com/electron-egg/'
    4. }

    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

    1. # Place directory
    2. http://kodo.qiniu.com/electron-egg/
    3. # After placement
    4. http://kodo.qiniu.com/electron-egg/electron-egg-windows-1.14.0.exe
    5. 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)