Add JDK 14 & CrossOver
This commit is contained in:
parent
591c64fdc8
commit
d69f14c4a5
2 changed files with 28 additions and 0 deletions
14
modules/AdoptOpenJDK14.php
Normal file
14
modules/AdoptOpenJDK14.php
Normal 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
14
modules/CrossOver.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue