Update latest JRE from 15 to 16
This commit is contained in:
parent
4ec6069cbd
commit
b2ae61dffd
1 changed files with 4 additions and 4 deletions
15
modules/AdoptOpenJDK16.php
Normal file
15
modules/AdoptOpenJDK16.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class AdoptOpenJDK16 extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk16&jvmVariant=hotspot');
|
||||
$this->patch->setBranch('JRE 16');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch_json('https://api.adoptopenjdk.net/v2/info/releases/openjdk16?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64'))
|
||||
return $this->parse_json('openjdk_version');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue