tis-adoptium-openjdk17-jdk

17.0.13.11-16
Eclipse Temurin (anciennement Adoptium OpenJDK, anciennement AdoptOpenJDK) avec Hotspot est une version open source de Java SE basée sur OpenJDK
26665 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-adoptium-openjdk17-jdk icon
  • package : tis-adoptium-openjdk17-jdk
  • name : Adoptium OpenJDK 17 JDK
  • version : 17.0.13.11-16
  • 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 : mac
  • impacted_process : java,javaw,java-rmi,jabswitch,jjs
  • architecture : arm
  • signature_date : 2024-12-03 17:56
  • size : 184.79 Mo
  • installed_size : 201.56 Mo
  • homepage : https://adoptium.net/
  • conflicts :
package           : tis-adoptium-openjdk17-jdk
version           : 17.0.13.11-16
architecture      : arm
section           : base
priority          : optional
name              : Adoptium OpenJDK 17 JDK
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         : tis-adoptopenjdk17-jre
maturity          : PROD
locale            : all
target_os         : mac
min_wapt_version  : 2.3
sources           : https://adoptium.net/temurin/releases/?version=17
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      : 5066ada5-5c79-4ab0-8fc4-3a616d2d8d5f
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://adoptium.net/temurin/release-notes/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-03T17:56:26.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         : ZikS00jAIEr1+LFfSTk3TFdKY/Wlv3e0GR6P+bQC2eyYfZFvkdqRxqH4m5cEMVoQzmVVVDb+5jbwJjO9uZhBmlTnE8kcBHXgZ7gqYuUfh14UmqLUgZoKR1v6bAUHU9SlUN/LPkGQAnFzPc2BG6voPGP1sBpJ5Bxrr3XW0+eDMfaToSjnrHecrZqr5XNm666a6WNeLTdQyqxmRZZBDtTMIsf5GZPacLcJq4rYGchXDUGZGDebJ7eCMqW427rzZu2yqPHbLPyHEhB7pQFLvbHN9BzqC7thJjE/uI2U2fi6B7r8KJTozuzEB/78qKFku69Nfq1/gdVH3xhkJWyJIH4KYQ==
# -*- coding: utf-8 -*-
from setuphelpers import *


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

    bin_name = glob.glob(f"{bin_contains}*.pkg")[0]
    install_pkg(bin_name)


def uninstall():
    bin_type = control.package.rsplit("-", 1)[-1]
    openjdk_version = control.get_software_version().split(".")[0]
    bin_contains = f"OpenJDK{openjdk_version}U"

    uninstall_pkg(f"net.temurin.{openjdk_version}.{bin_type}")
    remove_tree(f"/Library/Java/JavaVirtualMachines/temurin-{openjdk_version}.{bin_type}")
# -*- 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-arm": 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-arm": 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("+", ".")
        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)

    # Downloading windows-x86 binary for windows-x64
    if f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}' == "windows-x64":
        api_url = update_dict["api_url"][f"windows-x86"]

        # 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("+", ".")
            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)

        # Deleting outdated binaries
        remove_outdated_binaries(version)

    else:
        # Deleting outdated binaries
        remove_outdated_binaries(latest_bin)

    # 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(version)
    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)
b7fed1a41a14ab48fed8610f3ac5fafc14ff1d351869def400ca4daea4fe66eb : OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.13_11.pkg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
7d5474581a1fe86db8a18ec03bbefed6043c048c3857a65ea87ca33817bff015 : WAPT/control
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
16dfcd49a10c0fa7eb44d2e1f2cca35c68a8b110b65d2d9fa9b54e66a5131b0e : luti.json
7d3bf0c5bb73236ca1662c68a9c1a3878a6bb77db99478c41509af719407a0c8 : setup.py
e660981a4e583d506a8af941d803a8bc2939a891cbd913f561b2ad286d424880 : update_package.py