Add RustDesk
This commit is contained in:
parent
60b865feb4
commit
e3feb39c6d
2 changed files with 30 additions and 0 deletions
15
modules/RustDesk.php
Normal file
15
modules/RustDesk.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class RustDesk extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Purslane Ltd', 'RustDesk', 'https://rustdesk.com/');
|
||||||
|
$this->patch->setBranch('Desktop');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch_json('https://api.github.com/repos/rustdesk/rustdesk/releases/latest'))
|
||||||
|
return $this->parse_json('tag_name');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
15
modules/RustDeskServer.php
Normal file
15
modules/RustDeskServer.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class RustDeskServer extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Purslane Ltd', 'RustDesk', 'https://rustdesk.com/');
|
||||||
|
$this->patch->setBranch('Server');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch_json('https://api.github.com/repos/rustdesk/rustdesk-server/releases/latest'))
|
||||||
|
return $this->parse_json('tag_name');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue