Added example update.json

This commit is contained in:
kolaente 2018-03-07 15:21:47 +01:00
parent c0232dbd43
commit 70e1e50150
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 10 additions and 0 deletions

View File

@ -127,6 +127,16 @@ class updater
*/
public function getUpdateInfoFromServer($server)
{
/**
* The update.json needs to have a form like this:
* [
* {
* "version": "0.96.1",
* "download": "v0.96.1.zip",
* "hash": "3437df76568baa21f8d4d1dfe562bc23f723001b97fac9be05515f60330d463b"
* }
* ]
*/
$updateInfosUrl = $server . 'update.json';
if ($this->remote_file_exists($updateInfosUrl))
{