I use electron-builder
to build my app and succeed to build the first version which contains three outputs: foosetup.exe, foo-0.0.1-full.nupkg and RELEASES.Now I want to implement the auto-update and I have deployed a back-end service by using electron-release-server
.
The auto-update need to set a feedURL
which will be used to fetch updates,but the problem is that I don't know what the updates exactly means?Is it the foo-0.0.1-full.nupkg
or the foo-0.0.1-delta.nupkg
or another file?
The second problem is that I don't know how to create the delta file.I can just find an option remoteReleases
in electron-builder
which is a URL to your existing updates.If given,these will be downloaded to create delta file
.But what's the URL exactly means?I find a example i which "remoteRelease": "https://github.com/user/repo"
,and it creates some releases and uploads many extra files for each release such as foosetup.exe
, foo-xx-full-nupkg
, RELEASES
.I guess electron-builder
will fetch the ${remoteReleases/release/download/some-version/xxx}
to download file and then diff the two file to create delta file,but I can't upload RELEASES
when I create release on github,it reports that they don't support this file type
.
Is there anyone can help?There're to few docs to follow for a beginer