Floogen / Stardrop

Stardrop is an open-source, cross-platform mod manager for the game Stardew Valley.
https://floogen.gitbook.io/stardrop/
GNU General Public License v3.0
114 stars 31 forks source link

[Feature Request] Github update support #109

Open rikai opened 1 year ago

rikai commented 1 year ago

Github has a C# way to access their API via Octokit.net which allows you to access releases via their API.

Many mods contain valid github update keys, and some mods release only on Github.

It would be nice if we could check for updates on Github using this.

Adda0 commented 1 year ago

Hello, the current Stardrop implementation in development branch already checks for GitHub releases. I compile Stardrop myself from the current development branch and I did not check when this feature was added, but it is already in there.

rikai commented 1 year ago

Unless I am mistaken, this is only for updates to Stardrop itself and maybe SMAPI, not mods in general. If that's incorrect though, please let me know!

Adda0 commented 1 year ago

Not only that. It works for updates for mods as well. I have updated a mod from GH with Stardrop just today. This was the reason I waited for a week before answering here. I wanted to see that some update really came in.

I have not looked through the code itself, though. It could be that you get redirected here for a new release only if there is an update key for both NM and GH and Stardrop fetches information about an update from NM yet points the user to GH. Not sure about this. As far as I am aware, though, the current implementation checks for updates of mods on GH.