Add XCA
This commit is contained in:
parent
d2bbd24b5f
commit
ba583831ae
2 changed files with 15 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class PatchObject {
|
||||||
}
|
}
|
||||||
function setVersion(string $version, bool $trim = false) {
|
function setVersion(string $version, bool $trim = false) {
|
||||||
if ($trim) {
|
if ($trim) {
|
||||||
$version = preg_replace('/^(release-|v)/', '', $version);
|
$version = preg_replace('/^(release-|RELEASE\.|v)/', '', $version);
|
||||||
}
|
}
|
||||||
$this->version = $version;
|
$this->version = $version;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
modules/XCA.php
Normal file
14
modules/XCA.php
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class XCA extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Christian Hohnstädt', 'XCA', 'https://hohnstaedt.de/xca/index.php/download');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://api.github.com/repos/chris2511/xca/releases/latest', true))
|
||||||
|
return $this->parse_json('tag_name');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue