Compare commits

..

3 commits

Author SHA1 Message Date
Steffen Lange
b38c8b8ff0 OpenVPN: use git releases 2025-06-21 17:18:57 +02:00
Steffen Lange
0f63efdec4 ESPurna: remove version prefix 2025-06-21 17:18:13 +02:00
Steffen Lange
f19b4ed9e1 DokuWiki: use git releases 2025-06-21 17:17:34 +02:00
3 changed files with 5 additions and 5 deletions

View file

@ -5,8 +5,8 @@ class DokuWiki extends PatchBase {
parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/');
}
function check() : bool {
if ($this->fetch('https://www.dokuwiki.org/changes'))
return $this->parse('/Release ([\d-]+[a-z]? (\"|\xE2\x80\x9C)[A-Za-z ]+(\"|\xE2\x80\x9D))/');
if ($this->fetch_json('https://api.github.com/repos/dokuwiki/dokuwiki/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}

View file

@ -6,7 +6,7 @@ class ESPurna extends PatchBase {
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/xoseperez/espurna/releases/latest'))
return $this->parse_json('tag_name');
return $this->parse_json('tag_name', '/github(.+)/');
return false;
}
}

View file

@ -5,8 +5,8 @@ class OpenVPN extends PatchBase {
parent::__construct('OpenVPN Inc.', 'OpenVPN', 'https://openvpn.net/community-downloads/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/tags'))
return $this->parse_json('name');
if ($this->fetch_json('https://api.github.com/repos/OpenVPN/openvpn/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}