Add FreeCAD & KiCad
This commit is contained in:
parent
e8b4adce5f
commit
960b30bc24
2 changed files with 28 additions and 0 deletions
14
modules/FreeCAD.php
Normal file
14
modules/FreeCAD.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class FreeCAD extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('FreeCAD Team', 'FreeCAD', 'https://www.freecadweb.org/downloads.php');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://api.github.com/repos/FreeCAD/FreeCAD/releases/latest', true))
|
||||
return $this->parse_json('tag_name');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
14
modules/KiCad.php
Normal file
14
modules/KiCad.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class KiCad extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('KiCad Developers', 'KiCad', 'https://kicad-pcb.org/download/');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://kicad-pcb.org/download/source/'))
|
||||
return $this->parse('/<p>Current Version: <strong>([\d\.]+)<\/strong><\/p>/');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue