Add Syncthing
This commit is contained in:
parent
a7435827e9
commit
df50500390
1 changed files with 14 additions and 0 deletions
14
modules/Syncthing.php
Normal file
14
modules/Syncthing.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Syncthing extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Syncthing Foundation', 'Syncthing', 'https://syncthing.net/downloads/');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://api.github.com/repos/syncthing/syncthing/releases/latest', true))
|
||||||
|
return $this->parse_json('tag_name');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue