tis-adoptium-openjdk17-jdk

17.0.1007-1
Adoptium OpenJDK 17 JDK HotSpot
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.1007-1
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor : AdoptOpenJDK
  • licence : GPLv2
  • locale : all
  • target_os : darwin
  • impacted_process : java,javaw
  • architecture : x64
  • signature_date : 2024-01-23 16:03
  • size : 179.86 Mo
  • homepage : https://adoptium.net/
  • conflicts :
package           : tis-adoptium-openjdk17-jdk
version           : 17.0.1007-1
architecture      : x64
section           : base
priority          : optional
name              : Adoptium OpenJDK 17 JDK
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Adoptium OpenJDK 17 JDK HotSpot
depends           : 
conflicts         : tis-oracle-java17-jdk-nonfree,tis-oracle-java17-jdk-free
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.0
sources           : https://github.com/adoptium/temurin17-binaries
installed_size    : 
impacted_process  : java,javaw
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : AdoptOpenJDK
keywords          : adopt,open,jdk,adoptopenjdk,java,jre
licence           : GPLv2
homepage          : https://adoptium.net/
package_uuid      : 2de118ae-0fd5-489b-aa0e-5017bb937986
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://adoptium.net//release_notes.html
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : e5KXA/Dy/L9y3SNoqH44QpEPXhrRdCIMP5E/tWAmRo53ft24LlZvGkW7rltwD3BLw3CdbOtsSkm1bPwmDEgw4ghHotdpGMpKwJcL0K8LQFwEBYkT0/OjfOGaY0f2ziY13WJEh9dMzme5g8j7QVR7whgPpqNu2ftLbLx6oNDakptyBKAnozGaGacO9/Rrs9es6Dy3V5V/MwGeTODCdepcG9Th3PqArLqAmwAnbWshcCn3CV++OJ02iV89BRFw+lw6jdFpxGmxq6iwp64/aYot5CFrK3PcBJ496pmC/tQwZKZQowy5IXSRDx9DHQHm4NddLU56koi1UbmEQ95Q+9LXGQ==
signature_date    : 2024-01-23T16:03:24.766980
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
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import json

# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls

bin_contains = "OpenJDK17U-"
bin_type = "jdk"
bin_vm = "temurin-17.jdk"


def install():
    # Declaring local variables
    bin_name = glob.glob("*%s*.pkg" % bin_contains)[0]

    # Installing the software
    print("Installing: %s" % bin_name)
    install_pkg(bin_name)


def uninstall():
    print("suppression de openjdk8")
    shutil.rmtree("/Library/Java/JavaVirtualMachines/%s" % bin_vm)
# -*- coding: utf-8 -*-
from setuphelpers import *
import json

# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls

bin_contains = "OpenJDK17U-"
bin_type = "jdk"


def update_package():
    # Declaring local variables
    arch = control.architecture
    result = False
    proxies = get_proxies()
    if arch == "x86":
        url_arch = "x32"
    else:
        url_arch = "x64"
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    # api : https://api.adoptium.net/q/swagger-ui/#/Assets/searchReleases
    # https://api.adoptium.net/v3/assets/feature_releases/17/ga?architecture=x64&heap_size=normal&image_type=jdk&os=mac&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse
    url_api = (
        "https://api.adoptium.net/v3/assets/feature_releases/17/ga?architecture=x64&heap_size=normal&image_type=%s&os=mac&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
        % bin_type
    )

    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    found = False

    for releases in json_load:
        if found:
            break
        for binary in releases["binaries"]:
            if (
                bin_contains.lower() in binary["installer"]["link"].lower()
                and binary["image_type"].lower() == bin_type.lower()
                and binary["architecture"].lower() == url_arch
                and binary["installer"]["link"].endswith(".pkg")
            ):
                version = binary["scm_ref"].split("jdk-")[1].split("_")[0].replace("+", "0")
                url_dl = binary["installer"]["link"]
                latest_bin = url_dl.rsplit("/", 1)[1]
                found = True
                break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL  is: %s" % url_dl)
    # Downloading latest  binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl, bin_contains + version + ".pkg", proxies=proxies)

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

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result
38f04368c83391b5bc5fb86c4b80b8f3f711c70aab3d55febcf2f7a8693a1c03 : setup.py
 : __pycache__
eee2ad878bdc83831a2da54611b3572945564ff82f6b0386a3e10cb7110db104 : update_package.py
f4cd8b6c187148ebfe7bc256a51e3eff98c271c242a152d5b5247efbbc83ca0f : OpenJDK17U-17.0.1007.pkg
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
89213548269d08db3d0a7890eb6931e80fe34f93eebca8200274a8f71ccbff5f : luti.json
c7464f3ec3d8455827e03c2f239aba4013a873ef0996b0230e760c2056accbaf : WAPT/control