tis-adoptium-openjdk21-jre icon

Adoptium OpenJDK 21 JRE

Paquet d’installation silencieuse pour Adoptium OpenJDK 21 JRE

21.0.5.11-4

  • package: tis-adoptium-openjdk21-jre
  • name: Adoptium OpenJDK 21 JRE
  • version: 21.0.5.11-4
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
  • editor: AdoptOpenJDK
  • licence: opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: java,javaw,java-rmi,jabswitch,jjs
  • architecture: x64
  • signature_date:
  • size: 35.11 Mo
  • installed_size: 201.56 Mo
  • homepage : https://adoptium.net/

package           : tis-adoptium-openjdk21-jre
version           : 21.0.5.11-4
architecture      : x64
section           : base
priority          : optional
name              : Adoptium OpenJDK 21 JRE
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
description       : Eclipse Temurin (formerly Adoptium OpenJDK, formerly AdoptOpenJDK) with Hotspot is an open source Java SE build based upon OpenJDK
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://adoptium.net/temurin/releases/?version=21
installed_size    : 201560138
impacted_process  : java,javaw,java-rmi,jabswitch,jjs
description_fr    : Eclipse Temurin (anciennement Adoptium OpenJDK, anciennement AdoptOpenJDK) avec Hotspot est une version open source de Java SE basée sur OpenJDK
description_pl    : Eclipse Temurin (dawniej Adoptium OpenJDK, dawniej AdoptOpenJDK) z Hotspotem to open source'owa kompilacja Java SE oparta na OpenJDK
description_de    : Eclipse Temurin (ehemals Adoptium OpenJDK, ehemals AdoptOpenJDK) mit Hotspot ist ein quelloffener Java SE Build, der auf OpenJDK basiert
description_es    : Eclipse Temurin (antes Adoptium OpenJDK, antes AdoptOpenJDK) con Hotspot es una compilación de Java SE de código abierto basada en OpenJDK
description_pt    : O Eclipse Temurin (anteriormente Adoptium OpenJDK, anteriormente AdoptOpenJDK) com Hotspot é uma compilação Java SE de código aberto baseada no OpenJDK
description_it    : Eclipse Temurin (ex Adoptium OpenJDK, ex AdoptOpenJDK) con Hotspot è una build open source di Java SE basata su OpenJDK
description_nl    : Eclipse Temurin (voorheen Adoptium OpenJDK, voorheen AdoptOpenJDK) met Hotspot is een open source Java SE build gebaseerd op OpenJDK
description_ru    : Eclipse Temurin (ранее Adoptium OpenJDK, ранее AdoptOpenJDK) с Hotspot - это сборка Java SE с открытым исходным кодом, основанная на OpenJDK
audit_schedule    : 
editor            : AdoptOpenJDK
keywords          : adopt,open,jdk,adoptopenjdk,java,jre
licence           : opensource_free,cpe:/a:gnu:gpl_v2,wapt_public
homepage          : https://adoptium.net/
package_uuid      : 419e5af3-fe2f-439e-a2a1-d3a774eef27b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://adoptium.net/temurin/release-notes/
min_os_version    : 6.3
max_os_version    : 
icon_sha256sum    : 841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-26T10:09:09.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : DIRr87hpakPPWzHAq7/0YP05PymEkFx+M2+rPMZvmCh6ke7B7GRreTYF/g82ltPiO7Kc0HcxahA0gU4SjrR/7vY1Q8FeFKYy7f8D3IZbI6wVdHqCNJWzOHuYT7Hdnab4omjklH2b8NN5/lOW2FyivuQ3Pzo8c9i2DqvTHiaE7xEdEd2Spi9MOc1w25drj8iva8H1Vocq/W6hnelzGOQKGsOsxtRrPJdAXwb7iCWy4eALxxfN8R1IXjOfmP9Fx/0HpmkvIbBRnu0ftdEldLy78lMqN/7V3eRYMSsfGK9FUz1pVeAzkResokSOe5qzQi+QW6tr0ivKiWJMIdpnn/0IOg==

# -*- coding: utf-8 -*-
from setuphelpers import *


# https://adoptium.net/installation/windows/
properties = "ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome,FeatureOracleJavaSoft"
# properties = "INSTALLLEVEL=1"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_type = control.package.rsplit("-", 1)[-1]
    openjdk_version = control.get_software_version().split(".")[0]
    bin_contains = f"OpenJDK{openjdk_version}U"

    # # Uninstalling older versions of the software
    # for to_uninstall in installed_softwares(name="Eclipse Temurin JRE"):
    #     if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
    #         print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
    #         killalltasks(ensure_list(control.impacted_process))
    #         run(uninstall_cmd(to_uninstall["key"]))
    #         wait_uninstallkey_absent(to_uninstall["key"])
    #         if isdir(to_uninstall["install_location"]):
    #             remove_tree(to_uninstall["install_location"])

    # Installing the software

    if "x64" in control.architecture:
        bin_name_x64 = glob.glob("%s*.msi" % bin_contains)[0]
        install_msi_if_needed(
            bin_name_x64,
            properties=properties,
        )

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    # https://api.adoptium.net/q/swagger-ui/#/Assets/searchReleases
    bin_type = control.package.rsplit("-", 1)[-1]
    openjdk_version = control.get_software_version().split(".")[0]
    bin_contains = f"OpenJDK{openjdk_version}U"
    update_dict = {
        "api_url": {
            "windows-x64": f"https://api.adoptium.net/v3/assets/feature_releases/{openjdk_version}/ga?architecture=x64&heap_size=normal&image_type={bin_type}&jvm_impl=hotspot&os=windows",
            "windows-x86": f"https://api.adoptium.net/v3/assets/feature_releases/{openjdk_version}/ga?architecture=x86&heap_size=normal&image_type={bin_type}&jvm_impl=hotspot&os=windows",
            "mac-x64": f"https://api.adoptium.net/v3/assets/feature_releases/{openjdk_version}/ga?architecture=x64&heap_size=normal&image_type={bin_type}&jvm_impl=hotspot&os=mac",
            "mac-aarch64": f"https://api.adoptium.net/v3/assets/feature_releases/{openjdk_version}/ga?architecture=aarch64&heap_size=normal&image_type={bin_type}&jvm_impl=hotspot&os=mac",
            "linux-x64": f"https://api.adoptium.net/v3/assets/feature_releases/{openjdk_version}/ga?architecture=x64&heap_size=normal&image_type={bin_type}&jvm_impl=hotspot&os=linux",
            "linux-aarch64": f"https://api.adoptium.net/v3/assets/feature_releases/{openjdk_version}/ga?architecture=aarch64&heap_size=normal&image_type={bin_type}&jvm_impl=hotspot&os=linux",
        }
    }
    api_url = update_dict["api_url"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']

    # Getting latest version information from official API
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    for to_download in json_load:
        version = to_download["version_data"]["semver"].replace("+", ".").replace('.LTS','')
        download_url = to_download["binaries"][0]["installer"]["link"]
        latest_bin = to_download["binaries"][0]["installer"]["name"]
        break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)


    for msi in glob.glob('*.msi'):
        if msi != latest_bin:
            remove_file(msi)

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) == Version(version, 4):
            print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
        else:
            error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(str(Version(version, 4)))
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

baa356843cbe2cbc8e49bad1cfef27eaaf5e59748a1627be40492804753c706a : OpenJDK21U-jre_x64_windows_hotspot_21.0.5_11.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d15bf0bd0f481eb422be3e8dea8a166249eea704ecc5d7676706f95bb10a5737 : WAPT/control
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
6ed77189367b2927312d098df5985bb164815ef02f0e022b5f846175101e3054 : luti.json
378d4099dffea26f0023ef2a8e10497a175a9a8215d426280bb72d84ac071099 : setup.py
85d6b5acda978ee2c287797927d5b4c56a880ea743a626c9af5148f78c44fcff : update_package.py