
Adoptium OpenJDK 17 JRE
Silent install package for Adoptium OpenJDK 17 JRE
17.0.6010-1
- package: tis-adoptium-openjdk17-jre
- name: Adoptium OpenJDK 17 JRE
- version: 17.0.6010-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:
- size: 186.78 Mo
- homepage : https://adoptium.net/
- conflicts :
package : tis-adoptium-openjdk17-jre
version : 17.0.6010-1
architecture : x64
section : base
priority : optional
name : Adoptium OpenJDK 17 JRE
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : Adoptium OpenJDK 17 JRE HotSpot
depends :
conflicts : tis-oracle-java17-jre-nonfree,tis-oracle-java17-jre-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 : 959c02c9-4010-4eee-a64f-8f15d961b956
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 : WG0OKKMPAA9ncQn5IaVsD8Rb14ZFmzyrabpxf8Rhq4ZaCVa2bA5RLhLGDwzgltBd3rnHUc8O97HWansVRL6Wh13+u2POERtoAc//NDc/KnF9/eghn9cUX6fbU6ZKxrTLG89gsrysm205titavtaXpO9WytkzdaYRkxhwY/Xe2hKDkWO1aIszWrU94UCXog8DEbo/HwicFyDBNOSUpcpt/zy45PFFUTsapXoVvH9gsOBjDpNyGGx7DrXitW58SKUOKQkmLNBoo988aWJ6bmqUOne4xHTR3KHlaPfO++u30KN+ybDikU7RLw+gbMf7TtfAjJBngsiCnm3BujF2Htd91Q==
signature_date : 2023-04-25T13:00:14.472132
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 = "OpenJDK17U-"
bin_vm = "temurin-17.jdk"
def install():
# Declaring local variables
package_version = control.get_software_version()
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
# 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
f1612db20f89d7482ea312c90a5de28e3b6494b41111beeaac2fbf6ecd213491 : setup.py
5a04f6d7e643bdb232a6efa178188df8e1efd3c4a0476b32772beb6a4c4649f5 : OpenJDK17U-17.0.6010.pkg
1814ca33e1e307bc65e63059f540d46153a44f2809585566896b4735bbedb6a4 : update_package.py
841c3b8e2f19942f438049a68b7920c2a49eb3997fb991dc6b41f3a8f242d3a3 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4a4b976571949952cd5ff736bf18576c14bf215efffaf8fd925e4f15477fb286 : luti.json
bed90415c6ced56fc9beb96a26c56a22c17b29b21d086fdcbeb356d863ec6cf3 : WAPT/control