KiCad: use GitHub release tags

This commit is contained in:
Steffen Lange 2023-03-04 12:34:16 +01:00
parent f31a831755
commit 3c7fd967d0

View file

@ -5,8 +5,8 @@ class KiCad extends PatchBase {
parent::__construct('KiCad Developers', 'KiCad', 'https://kicad.org/download/');
}
function check() : bool {
if ($this->fetch('https://kicad.org/download/source/'))
return $this->parse('/<p>Current Version: <strong>([\d\.]+)<\/strong><\/p>/');
if ($this->fetch_json('https://api.github.com/repos/KiCad/kicad-source-mirror/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}