Add JDK 14 & CrossOver

This commit is contained in:
Steffen Lange 2020-03-28 14:05:40 +01:00
parent 591c64fdc8
commit d69f14c4a5
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<?php
class AdoptOpenJDK14 extends PatchBase {
function __construct() {
parent::__construct('AdoptOpenJDK', 'OpenJDK JRE 14', 'https://adoptopenjdk.net/');
}
function check() : bool {
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk14?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))
return $this->parse_json('openjdk_version');
return false;
}
}
?>

14
modules/CrossOver.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class CrossOver extends PatchBase {
function __construct() {
parent::__construct('CodeWeavers', 'CrossOver', 'https://www.codeweavers.com/products');
}
function check() : bool {
if ($this->fetch('https://www.codeweavers.com/products/more-information/changelog'))
return $this->parse('/<b>([\d\.]+)<\/b>[\s]*CrossOver/');
return false;
}
}
?>