tis-spad icon

SPAD.neXt

Paquet d’installation silencieuse pour SPAD.neXt

0.9.16.4-1

  • package: tis-spad
  • name: SPAD.neXt
  • version: 0.9.16.4-1
  • maintainer: Amel FRADJ
  • licence: https://www.spadnext.com/discover/discover/complete-edition.html
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 99.83 Mo
  • homepage : https://www.spadnext.com/home.html

package           : tis-spad
version           : 0.9.16.4-1
architecture      : x64
section           : base
priority          : optional
name              : SPAD.neXt
categories        : 
maintainer        : Amel FRADJ
description       : Simulation panel Advanced drivers: new generation
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Panneau de simulation Pilotes avancés : nouvelle génération
description_pl    : Panel symulacyjny Zaawansowane sterowniki: nowa generacja
description_de    : Simulationspanel Fortgeschrittene Treiber: Neue Generation
description_es    : Panel de simulación Conductores avanzados: nueva generación
description_pt    : Painel de simulação Condutores avançados: nova geração
description_it    : Pannello di simulazione Driver avanzati: nuova generazione
description_nl    : Simulatiepaneel Geavanceerde bestuurders: nieuwe generatie
description_ru    : Панель моделирования Передовые водители: новое поколение
audit_schedule    : 
editor            : 
keywords          : 
licence           : https://www.spadnext.com/discover/discover/complete-edition.html
homepage          : https://www.spadnext.com/home.html
package_uuid      : 2e495690-a83b-40e1-aadb-fad07a4f899d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 8c5aec6b7f166297c41632f68d0f0dddfe232f6072f4769f1923504b7b66e1d7
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : pMOEqyPt4Kn1g01PA4PvGCnYDg70bm0YGKbsKh0Rw8UQ7RFv75DX1mReFOPRVBjwuep1qHgdqWwhHe0vGpM0kb888cmVFCfQAimMUl/JHjLudnax0n5BMKxY0DXRrqCUVUb05dIbaDwxGuGdEPJiK8EVTcoLlIXkxDs7ToXR6ijubDk6lW2dtvvHtbT0uHGG2E6y2WR/CRbutXAQ/1aTd16rZPxxcR4Yoz39MuG2LZOtZFNEVPhoIKYcDrEaePrwDoGc0KQgilvlaSvghDEc1tvUxhLuF4/jxwiosyCHSwDH2vIxfQDqoq08e9+QYkfTe6uVQD2hF7i+L34vFVLBLw==
signature_date    : 2024-07-07T17:01:15.321278
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

from setuphelpers import *


def install():
    bin_name = glob.glob("SPAD.neXt.*.Setup.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags="/allusers /S /VERYSILENT",
        key="{CE21AD13-50E6-474A-89B9-81E262E620A0}_is1",
        min_version=control.get_software_version(),
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
from zipfile import ZipFile


def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    url_base = "https://www.spadnext.com/download/download-spad-next.html"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "div","class","ce_hyperlink block", proxies=proxies)
    zip_file = None
    for div in divs:
        if zip_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            href = link['href']
            zip_file = href
            latest_bin = zip_file.split('/')[-1]
            download_url = f"https://www.spadnext.com/files/download/{latest_bin}"
            break


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.zip'):
        if f != latest_bin:
            remove_file(f)

     # Dézipper le fichier téléchargé
    if latest_bin.endswith('.zip'):
        with ZipFile(latest_bin, 'r') as zip_ref:
            zip_ref.extractall('.')
        
        # Trouver le fichier .exe extrait
        extracted_exe = None
        for file in glob.glob('*.exe'):
            if file != latest_bin:
                extracted_exe = file
                break
        
        # Supprimer le fichier .zip
        if os.path.isfile(latest_bin):
            os.remove(latest_bin)

    # Obtenir la version à partir du binaire
    version = get_version_from_binary(extracted_exe)

    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

f79a724397108064d37b1d8707629b59981123fd3a0785d7318c308ce3eba8c8 : setup.py
5541b58d8cfa16a8f03d1040a2645de5c555815ea50974ce4befecfc019e34dd : update_package.py
b6b2945e60ebc9894944663bddec3f7cf79fd62a894d789072bce13fc7b4dbd3 : SPAD.neXt.0.9.16.4.Setup.exe
8c5aec6b7f166297c41632f68d0f0dddfe232f6072f4769f1923504b7b66e1d7 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
f1a4883d592a5bfdd30a17deaa5c5cc601d61979ca9bee72488047896cbe12dc : luti.json
aecf8413bac248eb0457282ea80ed0e899ce86799d54f8884c9f6fabbf72f3c2 : WAPT/control