07th-mod / python-patcher

Mod Installer for the Higurashi and Umineko Games
158 stars 12 forks source link

Mods using `latest.php` to download script file take up to an hour to update link #160

Closed drojf closed 3 years ago

drojf commented 3 years ago

Recently we had a problem with the console arcs where, even though all the files were updated correctly, the installer still downloaded the old version of the script file (version 9.1.0 instead of version 10.0.0).

This file is downloaded through the latest.php file on our server, which then redirects to the correct github release. We've been using this for a very long time, but we did at some point add caching to prevent Github blocking us due to too many requests.

I had a look into how the latest.php on the server works, it looks like it only updates itself every hour so it takes up to an hour for all of the script links to update

There is actually a way now to download files from Github without using the php file, but you need to use the same filename for every release (I should look into this later to see if there is a way around that)

This is done by using a link of this format https://github.com/07th-mod/umineko-question/releases/latest/download/script-full.7z which will get "script-fuill.7z" from the latest release in the umineko-question repository.