tis-adoptium-openjdk25-jre icon

Adoptium OpenJDK 25 JRE

Silent install package for Adoptium OpenJDK 25 JRE

25.0.1.8-5
System and network
System and network

  • package: tis-adoptium-openjdk25-jre
  • name: Adoptium OpenJDK 25 JRE
  • version: 25.0.1.8-5
  • 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:
  • size: 55.82 Mo
  • installed_size: 201.56 Mo
  • homepage : https://adoptium.net/

package           : tis-adoptium-openjdk25-jre
version           : 25.0.1.8-5
architecture      : arm
section           : base
priority          : optional
name              : Adoptium OpenJDK 25 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         : mac
min_wapt_version  : 2.3
sources           : https://adoptium.net/temurin/releases/?version=25
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      : 05033b0f-b3bf-48ad-a589-6f30a8ba9afa
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    : 2025-11-18T19:12:19.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         : o8qv4LjZqe5hLrQRPsSROV7xOGjH1zoCjLgDQuJQJfvgGN4By62UmG7t5mR/pDFp6uNsxQBi5MTEsPeurnwuXMi6U6X6akUBlbyjNRsIf1EWaF8EL0yB2NulXjBv0XYmgXllvOgnMAWyXKq/ydEmtY+PQD3LsjuJb4PeKOAhqRMLuM6atjPQAfzmY28G51GA09SD26a5f7BWYZbw72BB0WqGksizEIIeDXObXG+YHkvO4ZHaQDEqEm8aicIJ5npkrzc4pQKoPuEHiFw4YGuPfiA6qKJCv06f29shSOIYEIwl4fYEJRS4tPsU6Z1OO2sdZtvXto8tiDMqGvt0s1yekg==

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


def install():
    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]

    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()
    app_name = control.name

    # https://api.adoptium.net/q/swagger-ui/#/Assets/searchReleases
    bin_type = control.package.rsplit("-", 1)[-1]
    openjdk_version = control.get_software_version().split(".")[0]

    update_dict = {
        "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-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=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-arm64": 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",
    }
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    api_url = update_dict[os_type]

    # Getting latest version information from official API
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)[0]
    version = json_load["version_data"]["openjdk_version"].replace("+", ".").replace('-LTS','')
    download_url = json_load["binaries"][0]["installer"]["link"]
    latest_bin = json_load["binaries"][0]["installer"]["name"]
    latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
    architecture = json_load["binaries"][0]['architecture']

    # Downloading latest binaries
    print(f"Latest {app_name} {architecture} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

ebcb25a654a53805b7f6d86984bbc70d97fe74e7c848d65d3ee014d1d6261664 : OpenJDK25U-jre_aarch64_mac_hotspot_25.0.1_8.pkg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
45624d113d3773f0245fe808608d1aff8f08800337d0d1f7ba53426b03b78e9f : WAPT/control
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
dcc8bcd95d6d3480bc4da03cff60603e08723fc18b8cf77bf81435c6f511cc48 : luti.json
460714de131c12f1ca4da9fc2db9111a181eb7bd1d346c91da3e3fd90b3655a2 : setup.py
2d8f6608b34ecb3ee61d6058aaab9801fd0b5e7d99bc4344c024815c8065b179 : update_package.py