GitbookIO / nuts

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
http://nuts.gitbook.com
Apache License 2.0
1.25k stars 299 forks source link

Unable to update app from squirrel nuts server #98

Open nxtlvlgg opened 8 years ago

nxtlvlgg commented 8 years ago

So I have setup a squirrel nuts server for my electron app and everything is up and running, but when it checked the feed url for an update, it doesn't find an update.

The update-available event never fires. Only ever gives update-not-available.

The feed url is set to: https://nuts.mywebsite.com/update/platform/version

I have two releases in my github repo, and the first one is installed.

I should note that I have setup the github webhook, so this shouldn't be a caching issue. I have confirmed that the releases files are all available to download via the url manually.

I checked the SquirrelSetup.log file and it seems to be hitting the URL, just not getting the update.

2016-08-13 23:36:04> CheckForUpdateImpl: Downloading RELEASES file from https://nuts.mywebsite.com/update/win32/0.0.1-alpha
2016-08-13 23:36:04> FileDownloader: Downloading url: https://nuts.mywebsite.com/update/win32/0.0.1-alpha/RELEASES?id=MyApp&localVersion=0.0.1-alpha&arch=amd64

I'm assuming I am missing some step, either in my build, release, or whatever.

Any help is greatly appreciated!

codephobia commented 8 years ago

Feel free to close this issue as a duplicate.

So it turns out that this was just a simple issue with the SemVer having a "-alpha" on the end. Once removing that and retesting, it works just fine.

Related to issue https://github.com/GitbookIO/nuts/issues/54 which looks like it has been patched in a pull request https://github.com/GitbookIO/nuts/pull/52, but not merged yet.