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
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
class AdoptOpenJDK15 extends PatchBase {
|
||||
class AdoptOpenJDK16 extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('AdoptOpenJDK', 'OpenJDK', 'https://adoptopenjdk.net/releases.html?variant=openjdk15&jvmVariant=hotspot');
|
||||
$this->patch->setBranch('JRE 15');
|
||||
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/openjdk15?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64'))
|
||||
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