Add draw.io Desktop

This commit is contained in:
Steffen Lange 2021-05-14 23:26:24 +02:00
parent 3f68252174
commit d32f900c8b

15
modules/DrawioDesktop.php Normal file
View file

@ -0,0 +1,15 @@
<?php
class DrawioDesktop extends PatchBase {
function __construct() {
parent::__construct('JGraph Ltd', 'draw.io', 'https://www.diagrams.net/');
$this->patch->setBranch('Desktop');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/jgraph/drawio-desktop/releases/latest'))
return $this->parse_json('name');
return false;
}
}
?>