Add Blender & KeePass

This commit is contained in:
Steffen Lange 2020-04-12 20:23:42 +02:00
parent 9eaeb5cd3c
commit 8daed2b519
2 changed files with 29 additions and 0 deletions

14
modules/Blender.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Blender extends PatchBase {
function __construct() {
parent::__construct('Blender Foundation', 'Blender', 'https://www.blender.org/download/');
}
function check() : bool {
if ($this->fetch('https://www.blender.org/'))
return $this->parse('/>Download Blender ([\d\.a-z]+)</');
return false;
}
}
?>

15
modules/KeePass2.php Normal file
View file

@ -0,0 +1,15 @@
<?php
class KeePass2 extends PatchBase {
function __construct() {
parent::__construct('Dominik Reichl', 'KeePass', 'https://keepass.info/download.html');
$this->patch->setBranch('2.x');
}
function check() : bool {
if ($this->fetch('https://keepass.info/download.html'))
return $this->parse('_sourceforge\.net/projects/keepass/files/KeePass%202\.x/[\d\.]+/KeePass-([\d\.]+)-Setup\.exe_');
return false;
}
}
?>