Add SumatraPDF

This commit is contained in:
Steffen Lange 2021-04-14 12:20:28 +02:00
parent 77ac2958b8
commit 35885593f2

14
modules/SumatraPDF.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class SumatraPDF extends PatchBase {
function __construct() {
parent::__construct('Krzysztof Kowalczyk', 'Sumatra PDF', 'https://www.sumatrapdfreader.org/download-free-pdf-viewer.html');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/sumatrapdfreader/sumatrapdf/releases/latest'))
return $this->parse_json('tag_name', '/(.+)rel/');
return false;
}
}
?>