tis-adoptium-openjdk11-jdk
11.0.22.7-3
Adoptium OpenJDK 11 JDK HotSpot
31396 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal

- package : tis-adoptium-openjdk11-jdk
- name : Adoptium OpenJDK 11 JDK
- version : 11.0.22.7-3
- 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
- architecture : x64
- signature_date : 2024-01-23 17:04
- size : 174.52 Mo
- homepage : https://adoptium.net/
- conflicts :
package : tis-adoptium-openjdk11-jdk
version : 11.0.22.7-3
architecture : x64
section : base
priority : optional
name : Adoptium OpenJDK 11 JDK
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
description : Adoptium OpenJDK 11 JDK HotSpot
depends :
conflicts : tis-oracle-java11-jre-nonfree,tis-oracle-java11-jre-free
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources : https://github.com/adoptium/temurin11-binaries
installed_size :
impacted_process : java,javaw
description_fr : Adoptium OpenJDK 11 JDK HotSpot
description_pl : Adoptium OpenJDK 11 JDK HotSpot
description_de : Adoptium OpenJDK 11 JDK HotSpot
description_es : Adoptium OpenJDK 11 JDK HotSpot
description_pt : Adoptium OpenJDK 11 JDK HotSpot
description_it : Adoptium OpenJDK 11 JDK HotSpot
description_nl : Adoptium OpenJDK 11 JDK HotSpot
description_ru : Adoptium OpenJDK 11 JDK HotSpot
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 : a725abaf-4cf6-45f8-a472-ce67118a6c10
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 : fsZgoaxYYXkM8pz1ATjKAXHnUf9+w1k9IdTdMRkhF87kvwzgyEcMI1Ov+1EetB2GuCoLHO2tHDQRNauD7p6AG8uRzAzHp6DItMPcSmNLfbDnjxeT7lsjvilo1kd6DEEyIWrkh4k4CGQ9AWfA29wiUKnZOaV6I7p8w2aYblqqdljh+euRMjhaI9CbJXY8rVzRogEpSvbY6uCdWcn07zYxSqQedK0Dh0EuvRGiSeMPfUd5/BbatGLTnEtLUjDlG3B+RfvBl/e0+CkL6xhTauv4su2xNBp9jLweMwPHPIFRqKBAriMmXFYPYH1ijZZt/KOhno5qn6niqqrTV1+Ylzv/eg==
signature_date : 2024-01-23T17:04:45.309859
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 *
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "OpenJDK11"
bin_type = "jdk"
msi_properties = "INSTALLLEVEL=1 ADDLOCAL=FeatureJavaHome,FeatureOracleJavaSoft"
def install():
# Declaring local variables
package_version = control.get_software_version()
# removing older versions
for to_uninstall in installed_softwares(name=r"Eclipse Temurin JDK"):
if Version(to_uninstall["version"]) < Version(package_version) or force:
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(control.impacted_process.split(","))
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 ensure_list(control.architecture) or "all" in ensure_list(control.architecture) and iswin64():
bin_name_x64 = glob.glob("*%s*x64*.msi" % bin_contains)[0]
install_msi_if_needed(
bin_name_x64,
properties=msi_properties,
)
if "x86" in ensure_list(control.architecture) or "all" in ensure_list(control.architecture):
bin_name_x86 = glob.glob("*%s*x86*.msi" % bin_contains)[0]
install_msi_if_needed(
bin_name_x86,
properties=msi_properties,
)
# -*- coding: utf-8 -*-
from setuphelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "OpenJDK11"
openjdk_version = "11"
bin_type = "jdk"
def update_package():
# Declaring local variables
arch = control.architecture
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
# api : https://api.adoptium.net/q/swagger-ui/#/Assets/searchReleases
url_api_64 = (
"https://api.adoptium.net/v3/assets/feature_releases/%s/ga?architecture=x64&heap_size=normal&image_type=%s&jvm_impl=hotspot&os=windows&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
% (openjdk_version, bin_type)
)
url_api_32 = (
"https://api.adoptium.net/v3/assets/feature_releases/%s/ga?architecture=x32&heap_size=normal&image_type=%s&jvm_impl=hotspot&os=windows&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
% (openjdk_version, bin_type)
)
# Getting latest version information from official sources
print("API used is: %s" % url_api_64)
json_load = json.loads(wgets(url_api_64, proxies=proxies))
# getting latest 64 bit version
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() == "x64"
and binary["installer"]["link"].endswith(".msi")
):
version_64 = binary["scm_ref"].split("jdk-")[1].split("_")[0].replace("+", ".")
url_dl_64 = binary["installer"]["link"]
latest_bin_64 = url_dl_64.rsplit("/", 1)[1]
found = True
break
# getting latest 32 bit version
found = False
print("API used is: %s" % url_api_32)
json_load = json.loads(wgets(url_api_32, proxies=proxies))
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() == "x32"
and binary["installer"]["link"].endswith(".msi")
):
version_86 = binary["scm_ref"].split("jdk-")[1].split("_")[0].replace("+", ".")
url_dl_86 = binary["installer"]["link"]
latest_bin_86 = url_dl_86.rsplit("/", 1)[1]
found = True
break
if version_64:
version = version_64
elif version_86:
version = version_86
else:
print("ERROR: Couldn't fin the software version")
print("Latest %s version is: %s" % (app_name, version))
print("Download URL for x86 is: %s" % url_dl_86)
print("Download URL for x64 is: %s" % url_dl_64)
# Downloading latest 64 bit binaries
if not isfile(latest_bin_64):
for bin_64 in glob.glob("*%s*64*.msi" % bin_contains):
remove_file(bin_64)
if arch == "all" or arch == "x64":
print("Downloading: %s" % latest_bin_64)
wget(url_dl_64, latest_bin_64, proxies=proxies)
# Downloading latest 32 bit binaries
if not isfile(latest_bin_86):
for bin_86 in glob.glob("*%s*86*.msi" % bin_contains):
remove_file(bin_86)
if arch == "all" or arch == "x86":
print("Downloading: %s" % latest_bin_86)
wget(url_dl_86, latest_bin_86, proxies=proxies)
if arch == "x86":
latest_bin = latest_bin_86
else:
latest_bin = latest_bin_64
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
if Version(version_from_file) != Version(version_64) and version_from_file != "":
print("Changing version to the version number of the binary")
for f in glob.glob(bin_contains + "*.msi"):
new_name = f.split("windows_hotspot_")[0] + version_from_file + ".msi"
os.rename(f, new_name)
version = version_from_file
else:
print("Binary file version corresponds to online version")
# 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.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return result
290499da92ee3bac42d35d5b69b8a3a8c6932d7f65d9db0e8c045508e306fdff : setup.py
a628fdaf29923f4cc2dfd3445369a4c1ce9c205bdf219a8ac33f809d489ffb6f : OpenJDK11U-jdk_x64_windows_hotspot_11.0.22_7.msi
: __pycache__
8024a0037c35cc159bf441b05693e42ac29bd9bb2f72c835038902869a4cb0bc : update_package.py
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
41c6af4e9cea80c80cfd92ce5662911349d23071acb4aac683d2cb73af8f220f : luti.json
f0f9ee13e0511179b8bdee4851790f34a3f208ecbe168f714fb50d0303b04e25 : WAPT/control