Monika-After-Story / MonikaModDev

DDLC fan mod to extend Monika
http://www.monikaafterstory.com/
Other
1.19k stars 685 forks source link

Automatic updating #111

Closed therationalpi closed 6 years ago

therationalpi commented 6 years ago

Renpy includes functionality for automatic web updates. This wasn't used in DDLC, because it was a standalone release, but MAS is in a state of rapid development at the moment and will benefit from occasional content updates in the future.

Implementing this will require a few things. First, Renpy has to be enabled to build updates, see https://www.renpy.org/doc/html/updater.html for details on setting this up. Second, Webhooks will need to be configured for this github repo, which will require at least some action from @Backdash. Info on this is available here: https://developer.github.com/webhooks/ . Finally, just to add some polish to this, we should make a custom screen by overriding updater in screens.rpy.

I think this would be a good feature to push out for version 0.6.0, to make migrating people to the latest version simpler in the future.

therationalpi commented 6 years ago

Alright, I've been putting this off long enough. I'm going to try my hand at this.

therationalpi commented 6 years ago

Renpy doesn't support HTTPS. That means we can't use github for hosting the files, since it doesn't http not over SSL any more.

therationalpi commented 6 years ago

Alright, this is now implemented. The updates have to be stored on Amazon S3, but otherwise it's pretty much like expected.

Still not sure how to test this, though.

https://github.com/Backdash/MonikaModDev/pull/174

therationalpi commented 6 years ago

Implemented, tested by making a small change and putting that on the server to test, and it worked like a charm. @Winblows2 checked it over and it's now merged into the next-release. Closing this issue.

https://github.com/Backdash/MonikaModDev/pull/174