tis-adoptium-openjdk8-jre
8.0.332.09-2
Adoptium OpenJDK 8 JRE HotSpot
4724 downloads
See build result See VirusTotal scan

Description
- package : tis-adoptium-openjdk8-jre
- name : Adoptium OpenJDK 8 JRE
- version : 8.0.332.09-2
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Pierre Cosson
- installed_size :
- editor : AdoptOpenJDK
- licence : GPLv2
- signature_date : 2022-05-10T18:00:15.019355
- size : 29.79 Mo
- locale : all
- target_os : windows
- impacted_process : java,javaw
- architecture : x86
- Homepage : https://adoptium.net/
- Conflicts :
control
package : tis-adoptium-openjdk8-jre
version : 8.0.332.09-2
architecture : x86
section : base
priority : optional
name : Adoptium OpenJDK 8 JRE
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Pierre Cosson
description : Adoptium OpenJDK 8 JRE HotSpot
depends :
conflicts : tis-oracle-java8-jre-nonfree,tis-oracle-java8-jre-free,tis-adoptopenjdk8-jdk
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 1.7
sources : https://github.com/adoptium/temurin8-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 : 142d6b16-bcf6-4e34-987e-a4b5940b50dd
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 : Alvfo0jkHQTerY+913Z/H7EFTt63x0eoeZngK7sFcgemAa98u5uitj8LG9L/A8b6MyCSZNV4XBjwMAKXJi4iUH74KqktvHI7rhF01j0zdFQ2ggRjr7gkpIApiLnv+OhbLtcPrVxc8jESyBqxSScUB/aP9S4lAHUSzNOr3rkRVw7D8oS5fq74kkugHn16UxpplH4stmqkxeTSGQ5tEpbWXB90KlCmMP3f5otHr5Lh/3srx+wJ2lZJDzibyswY6if9wWyPUaB9nLVpmQVNx7ziaiBbac5FgqF3ZEb6CPrXQYEm/vdFkjAbKph5MEJsFF1JAAONKSsvXa3NghVINxilsA==
signature_date : 2022-05-10T18:00:15.019355
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
Setup.py
# -*- 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 = "OpenJDK8U-"
bin_type = "jre"
# https://adoptium.net//installation.html#
silent_inst_args = "INSTALLLEVEL=1 ADDLOCAL=FeatureJavaHome,FeatureOracleJavaSoft"
def install():
# Declaring local variables
package_version = control.version.split("-")[0]
arch = control.architecture
# Uninstalling older versions of the software
for to_uninstall in installed_softwares(name=r"Eclipse Temurin JRE with Hotspot 8"):
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"])
# Installing the software
if arch == "all" and is64():
bin_name86 = glob.glob("*%s*x86*.msi" % bin_contains)[0]
bin_name64 = glob.glob("*%s*x64*.msi" % bin_contains)[0]
print("Installing: %s" % bin_name86)
install_msi_if_needed(bin_name86, properties=silent_inst_args)
print("Installing: %s" % bin_name64)
install_msi_if_needed(bin_name64, properties=silent_inst_args)
if arch == "x86" or is32():
bin_name86 = glob.glob("*%s*x86*.msi" % bin_contains)[0]
print("Installing: %s" % bin_name86)
install_msi_if_needed(bin_name86, properties=silent_inst_args)
if arch == "x64":
bin_name64 = glob.glob("*%s*x64*.msi" % bin_contains)[0]
print("Installing: %s" % bin_name64)
install_msi_if_needed(bin_name64, properties=silent_inst_args)
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/8/ga?architecture=x64&heap_size=normal&image_type=jre&jvm_impl=hotspot&os=windows&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
url_api_32 = "https://api.adoptium.net/v3/assets/feature_releases/8/ga?architecture=x32&heap_size=normal&image_type=jre&jvm_impl=hotspot&os=windows&page=0&page_size=10&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
# 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"].replace("v", "").replace("+", ".").replace("jdk", "").replace("u", ".0.").replace("-b", ".").split("_")[0]
)
url_dl_64 = binary["installer"]["link"]
latest_bin_64 = url_dl_64.rsplit("/", 1)[1]
found = True
version = version_64
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 version in releases["binaries"]:
if (
bin_contains.lower() in version["installer"]["link"].lower()
and version["image_type"].lower() == bin_type.lower()
and version["architecture"].lower() == "x32"
and version["installer"]["link"].endswith(".msi")
):
version_86 = (
version["scm_ref"].replace("v", "").replace("+", ".").replace("jdk", "").replace("u", ".0.").replace("-b", ".").split("_")[0]
)
url_dl_86 = version["installer"]["link"]
latest_bin_86 = url_dl_86.rsplit("/", 1)[1]
found = True
break
version = version_64
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":
latestbin = latest_bin_86
else:
latestbin = latest_bin_64
# Checking version from file
version_from_file = get_version_from_binary(latestbin)
# if not version_from_file.startswith(version) and version_from_file != '':
if Version(version_from_file) != Version(version_64) and version_from_file != "":
print("Changing version to the version number of the binary")
os.rename(latestbin, bin_contains + version_from_file + "-" + arch + ".msi")
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.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
# remove_outdated_binaries(version)
# Validating update-package-sources
return result
def get_proxies():
r"""Return system proxy with the urllib python library
>>> get_proxies()
{'http': 'http://srvproxy.ad.domain.lan:8080',
'https': 'http://srvproxy.ad.domain.lan:8080'}
"""
if platform.python_version_tuple()[0] == "3":
from urllib.request import getproxies
else:
from urllib import getproxies
return getproxies()
def get_proxies_from_wapt_console():
r"""Return proxy information from the current user WAPT console
>>> get_proxies_from_wapt_console()
{'http': 'http://srvproxy.ad.domain.lan:8080',
'https': 'http://srvproxy.ad.domain.lan:8080'}
"""
proxies = {}
if platform.system() == "Windows":
waptconsole_ini_path = makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")
else:
waptconsole_ini_path = makepath(user_home_directory(), ".config", "waptconsole", "waptconsole.ini")
if isfile(waptconsole_ini_path):
proxy_wapt = inifile_readstring(waptconsole_ini_path, "global", "http_proxy")
if proxy_wapt:
proxies = {"http": proxy_wapt, "https": proxy_wapt}
return proxies
def get_version_from_binary(filename, property_name="ProductVersion"):
r"""Get installer version from file informations, for now, only exe and msi files are compatibles
Args:
filename (str): path to the file
property_name (str): selected property
Returns:
str: version number
"""
if filename.endswith(".msi"):
return get_msi_properties(filename)[property_name]
else:
return get_file_properties(filename)[property_name]
def remove_outdated_binaries(version, list_extensions=["exe", "msi", "deb", "rpm", "dmg", "pkg"], filename_contains=None):
r"""Remove files based on the version contained in his filename, failing over on file version on compatible OSes
Args:
version (str): version number of keeped files
list_extensions (str or list of str): file extensions of compared files
filename_contains (str or list of str): Part of the filename that must be contained (useful for distinguishing architecture and os)
Returns:
list: list of deleted files
.. versionadded:: 2.0
.. versionchanged:: 2.2
Now returns removed files, now checking .exe and .msi file versions
"""
files = []
if type(list_extensions) != list:
list_extensions = [list_extensions]
if filename_contains:
if type(filename_contains) != list:
filename_contains = [filename_contains]
list_extensions = ["." + ext for ext in list_extensions if ext[0] != "."]
for file_ext in list_extensions:
for bin_in_dir in glob.glob("*%s" % file_ext):
if not version in bin_in_dir:
if platform.system() == "Windows":
if file_ext == ".exe" or file_ext == ".msi":
if Version(version) == Version(get_version_from_binary(bin_in_dir, "ProductVersion")):
print("%s file or product version is correct (%s)" % (bin_in_dir, version))
continue
remove_file(bin_in_dir)
files.append(bin_in_dir)
if filename_contains:
for filename_contain in filename_contains:
if not filename_contain in bin_in_dir:
remove_file(bin_in_dir)
files.append(bin_in_dir)
return [fn for fn in files]
657a644bcd5b665e5861f735ff41215596c051aa2d256d2176318f08d294191a : setup.py
bbfc442deb0ab4d7a2450ca3f999f64ba63f065bbcc22c55d8d3e8842007c37e : OpenJDK8U-jre_x86-32_windows_hotspot_8u332b09.msi
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d8622846f48ee5bbcf8383685b13b99adb765d3cb92fb6fc51b47c1e631b3a71 : luti.json
bd5bdab87e182daaceca8d906088bef91c6bddbc4cb34bdefa570900ac334d6a : WAPT/control