tis-looping-portable

4.0.0.0-1
Looping (Patrick Bergougnoux - Eric Mathet) Modélisation Conceptuelle de Données
591 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-looping-portable icon
  • package : tis-looping-portable
  • name : looping
  • version : 4.0.0.0-1
  • categories :
  • maintainer : Amel FRADJ
  • editor :
  • licence : Logiciel gratuit et libre d'utilisation - Université Toulouse III
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-07-10 18:00
  • size : 13.53 Mo
  • homepage : https://www.looping-mcd.fr/
package           : tis-looping-portable
version           : 4.0.0.0-1
architecture      : x64
section           : base
priority          : optional
name              : looping
categories        : 
maintainer        : Amel FRADJ
description       : Looping (Patrick Bergougnoux - Eric Mathet) Conceptual Data Modeling
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Looping (Patrick Bergougnoux - Eric Mathet) Modélisation Conceptuelle de Données
description_pl    : Zapętlanie (Patrick Bergougnoux - Eric Mathet) Koncepcyjne modelowanie danych
description_de    : Looping (Patrick Bergougnoux - Eric Mathet) Konzeptuelle Datenmodellierung
description_es    : Looping (Patrick Bergougnoux - Eric Mathet) Modelización conceptual de datos
description_pt    : Looping (Patrick Bergougnoux - Eric Mathet) Modelação de dados conceptuais
description_it    : Looping (Patrick Bergougnoux - Eric Mathet) Modellazione concettuale dei dati
description_nl    : Looping (Patrick Bergougnoux - Eric Mathet) Conceptuele gegevensmodellering
description_ru    : Петли (Патрик Бергугну - Эрик Мате) Концептуальное моделирование данных
audit_schedule    : 
editor            : 
keywords          : 
licence           : Logiciel gratuit et libre d'utilisation - Université Toulouse III
homepage          : https://www.looping-mcd.fr/
package_uuid      : 241bb723-36ef-4836-9b4f-8ba6aae02ff9
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : d6a2f836da931b25940e2bf03513999aebd32bf976e8b187996926e06a572b4f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : JSqKvy9J1efDiIAQoWzk4spFa5RiWIKzDWCAo9kl5V4glSm0picFG7QkM0s+8uzSKpicFl/FFdFLuJf6dM1aNpFHdCW6uiaMsyoUiKWAODydWIX95nPEbPb01pvAsrbGjOMDl3y2xC/gp63rUFqEIPcuI7D57xgo4/RXYGD1Rs1rh7c1jmhA7vkVQhM5cSzBVaM9wWeV+7xd83W+yLwJBpuaToyeVchBFUh5vSqwV6fuZYrX8/H6sxc/ysuQFVPv3CIhit6KMh1sBxLcOsSA/HA5EbiV6rKmtMRJIDOK3aHPQIvVo835Lfzv2B7LpTL4ZCEhBx4pwHa5BQgoxiQhNg==
signature_date    : 2024-07-10T18:00:09.009363
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 *

"""


"""


app_name = "Looping "
editor_dir = makepath(programfiles, "Looping")
app_dir = makepath(editor_dir, "Looping")
app_path = makepath(app_dir, "Looping.exe")
#icon_path = makepath(app_dir, "resources", "app", "build", "crushee.ico")   #tis-crushee\windows\crushee\resources\resources\build
audit_version = False


def get_installed_version(app_path):
    return get_file_properties(app_path).get("FileVersion", "")


def install():
    # Declaring local variables
    zip_name = glob.glob(f"Looping.zip")[0]

    unzipped_dir = "Looping"


    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    print("Extracting: %s to: %s" % (zip_name, unzipped_dir))
    unzip(zip_name, unzipped_dir)
    print('Copy Looping to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

    # Creating custom shortcuts
    create_desktop_shortcut(app_name, target=app_path)
    create_programs_menu_shortcut(app_name, target=app_path)


def audit():
    # Auditing software
    audit_status = "OK"
    installed_version = get_installed_version(app_path)
    if Version(installed_version) < Version(control.get_software_version()) and audit_version:
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print("%s (%s) is installed" % (app_name, installed_version))
        audit_status = "OK"
    else:
        print("%s is not installed" % app_name)
        audit_status = "ERROR"
    return audit_status


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)
    if dir_is_empty(editor_dir):
        remove_tree(editor_dir)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
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.looping-mcd.fr/"
    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","panel", proxies=proxies)
    zip_file = None
    for div in divs:
        if zip_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.zip'):
                href = link['href']
                zip_file = href
                download_url = zip_file
                latest_bin = zip_file.split('/')[-1]
                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)

    # Extracting the downloaded zip file
    with zipfile.ZipFile(latest_bin, 'r') as zip_ref:
        zip_ref.extractall()

    # Determine system architecture
    arch = control.architecture
    if arch == '64bit':
        exe_file = "looping.exe"
    else:
        exe_file = "looping_32bits.exe"

    if not isfile(exe_file):
        raise Exception("Executable not found: %s" % exe_file)        
    version = get_version_from_binary(exe_file)
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

92d292ade66445724e1e2fb39005f930eb7ea14636bbcf671b2b454b81497d5b : setup.py
 : __pycache__
109f3a2d078ec77e44e1c726ccc87c3bb4463612462e8f17a6fb57b562dd0bce : Looping_32bits.exe
63840b74655c9638061f88f3ca8ce598138d6b5cfa73b679974473b1795dd684 : update_package.py
d6a2f836da931b25940e2bf03513999aebd32bf976e8b187996926e06a572b4f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
fbd9fcff69546fdabd268405b5c43e483d0dfe69249618830eeef857d00eb7a9 : luti.json
b34bebe09e9bf17918723b9f3e5cb6e96d684a51fab95290c0d5812387fa2cd9 : Looping.zip
5f06232ed4ee5d7bfcb5525228fcb97ba893c0e7bd735aeb08ee5fccb4d205ee : Looping.exe
c60486d175ecbae1183be17f1f54674466f0d9747b6c078b191436be33c5d77e : WAPT/control