tis-arx icon

ARX

Silent install package for ARX

3.9.0-1

  • package: tis-arx
  • name: ARX
  • version: 3.9.0-1
  • maintainer: Amel FRADJ
  • licence: Apache-2.0
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 226.51 Mo
  • homepage : https://arx.deidentifier.org/

package           : tis-arx
version           : 3.9.0-1
architecture      : x64
section           : base
priority          : optional
name              : ARX
categories        : 
maintainer        : Amel FRADJ
description       : ARX is a complete open source software package for anonymizing sensitive personal data
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : ARX ​​est un logiciel open source complet permettant d'anonymiser les données personnelles sensibles
description_pl    : ARX to kompletny pakiet oprogramowania open source do anonimizacji wrażliwych danych osobowych
description_de    : ARX ist eine umfassende Open-Source-Software zur Anonymisierung sensibler persönlicher Daten
description_es    : ARX es un completo paquete de software de código abierto para anonimizar datos personales sensibles
description_pt    : O ARX é um pacote completo de software de fonte aberta para tornar anónimos os dados pessoais sensíveis
description_it    : ARX è un pacchetto software open source completo per l'anonimizzazione dei dati personali sensibili
description_nl    : ARX is een compleet open source softwarepakket voor het anonimiseren van gevoelige persoonlijke gegevens
description_ru    : ARX - это полный пакет программного обеспечения с открытым исходным кодом для анонимизации конфиденциальных персональных данных
audit_schedule    : 
editor            : 
keywords          : 
licence           : Apache-2.0
homepage          : https://arx.deidentifier.org/
package_uuid      : 18dddea7-48af-4bbb-b735-7c989e8f93fb
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 726865a68ae12819884b73caef91aefca326b27b5c326e0b108da199d8749026
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : MG0gC10n9VnjFfXqS7bcdxsw2IYOemAxdtJmvrx5OacSpkvKwBcQBS6OcHHHr0IDvuBrq9TXF9W+hM/FarhJguwwttdYg44wbJOxnTFNuZn9DiAXY6iqQBotJK6CUxO2bUTFTM1J3WWPNX5xGqFDRifUEooNKJ1et3LU3kmjOpap/qsNpEGgBmwOO06QuR1xF6M6PV6PODDsltj9woOilcgA+Va0iMsxmS0rTHmx6/99eE4QOtzpGFvcZOmwgiBkJUgX9xXGFkkYp5d29HmDOob3FO3ZsDG4/DNL+onssaUBGASj4Evn2Qqb/R6WRWwyT+nlfHTzch5Y0zmcAR/rpQ==
signature_date    : 2024-06-17T13:00:14.053065
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 *

r"""
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


def install():
    # Declaring local variables
    bin_name= glob.glob('ARX-*-windows-x64-installer.exe')[0]
    # Installing the software
   
    install_exe_if_needed(bin_name,
        silentflags=' --mode unattended --unattendedmodeui none',
        key=f'ARX {control.get_software_version()}',
        min_version=control.get_software_version(),
    )
    
    for i in installed_softwares(f'ARX {control.get_software_version()}'):
        print(i)
        installer_key = i["key"]
        quiet_uninstall_string = i["uninstall_string"] + " --mode unattended"
        register_uninstall(installer_key, quiet_uninstall_string=quiet_uninstall_string)

    print(installed_softwares(f'ARX {control.get_software_version()}'))
'''def uninstall():
    app = f'ARX {control.get_software_version()}'
    run(f'{installed_softwares(app)[0]["uninstall_string"]} --mode unattended')'''
    



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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    git_repo = "arx-deidentifier/arx"
    url_api = "https://api.github.com/repos/%s/releases" % git_repo   
    # Getting latest version information from official sources
    url_api = "https://api.github.com/repos/%s/releases" % git_repo
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

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

    # Vérifier que json_load est une liste
    if isinstance(json_load, list):
        # Itérer à travers chaque release
        for release in json_load:
            # Ignorer les préversions
            if release["prerelease"]:
                print("Skipping prerelease:", release["tag_name"])
                continue

            # Vérifier que la release contient une clé "assets" et que c'est une liste
            if "assets" in release and isinstance(release["assets"], list):
                found_valid_asset = False
                for download in release["assets"]:
                    # Vérifier si l'URL de téléchargement se termine par .exe e
                    if download["browser_download_url"].endswith(".exe") :
                        url_dl = download["browser_download_url"]
                        filename = download["name"]
                        version = release["tag_name"].replace("v","")
                        found_valid_asset = True
                        break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)
    version =get_version_from_binary(filename)
    control.set_software_version(version)
    control.save_control_to_wapt()

e9c0cb6ebe83b4cfe2ac47f82e66acf559e5ee70c235d92f60afffefcf784ead : setup.py
816e0ec108572702c80824ca9dc0fbb06a57dd8499b421093898e5f5a8f1996e : update_package.py
2fbca580061a1c1dbaa6f46ab5704ec656b6459495a4b0d227f992e44f5e9cc0 : ARX-3.9.0-windows-x64-installer.exe
726865a68ae12819884b73caef91aefca326b27b5c326e0b108da199d8749026 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
be18fed7db931ad9474f98eebac4e9b3c4b84470f06b7bab7474c93661b7bb80 : luti.json
9f2f46505a4b0764120a1f767e08f4c109bd0a7f233eb8a3ab073a351da71a3d : WAPT/control