tis-is-designer-portable

4.1.1-1
Un outil open-source complet pour décrire visuellement les applications de votre système d'information
274 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-is-designer-portable icon
  • package : tis-is-designer-portable
  • name : is-designer
  • version : 4.1.1-1
  • categories :
  • maintainer : Amel FRADJ
  • editor :
  • licence : Eclipse Public License - v 2.0
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-06-09 13:01
  • size : 618.96 Mo
  • homepage : https://www.isdesigner.org/
  • depends :
package           : tis-is-designer-portable
version           : 4.1.1-1
architecture      : x64
section           : base
priority          : optional
name              : is-designer
categories        : 
maintainer        : Amel FRADJ
description       : A complete open-source tool for visually describing the applications in your information system
depends           : tis-adoptium-openjdk20-jre
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/ObeoNetwork/InformationSystem
installed_size    : 
impacted_process  : 
description_fr    : Un outil open-source complet pour décrire visuellement les applications de votre système d'information
description_pl    : Kompletne narzędzie open-source do wizualnego opisywania aplikacji w systemie informatycznym
description_de    : Ein umfassendes Open-Source-Tool zur visuellen Beschreibung der Anwendungen in Ihrem Informationssystem
description_es    : Una completa herramienta de código abierto para describir visualmente las aplicaciones de su sistema de información
description_pt    : Uma ferramenta completa de código aberto para descrever visualmente as aplicações do seu sistema de informação
description_it    : Uno strumento open-source completo per descrivere visivamente le applicazioni del sistema informativo
description_nl    : Een compleet open-source hulpmiddel voor het visueel beschrijven van de toepassingen in je informatiesysteem
description_ru    : Полноценный инструмент с открытым исходным кодом для визуального описания приложений в вашей информационной системе
audit_schedule    : 
editor            : 
keywords          : 
licence           : Eclipse Public License - v 2.0
homepage          : https://www.isdesigner.org/
package_uuid      : 000c19a5-235e-4aa7-aba2-3db27eafe0d0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : b7178dfcf5677397df26776488e5361170407f5509da488bf6ebbea698aa7c9e
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Nh1dZ6tbGFErMKkqM8z8i1FcQI+0ULx4jUn0kMVMIStukCGpE45HHA1yup7nYI0lTiV5FcZmxUVuI4J8vaRaanT5CTFyiLh6t9XaREoycJJKvsRqxDIy1395UZzwrtqdoS4ERErDQI395+AQTnU0gdUJGtHzljgfsy+KhNJezXI91sQ/nyO6Vjxy/7keTuR07pC/ged3hqu7i2G0aHZu1wYfewmXHashfjBgwjDawBHNKfMOmSbPCpk/otdGzbvQrdAXhNzWG1lta8puHsgLe97L5B6djDRnlX/1AppTsmyqSablcjmLkVAm3/zZ3ZYXW1iCRXy33xfTQiNEnMxGJw==
signature_date    : 2024-06-09T13:01:52.904265
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 = "ISDesigner"
app_dir = makepath(programfiles32, app_name)
app_path = makepath(app_dir,"ISDesigner" ,"is-designer.exe")
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"{app_name}*.zip")[0]
    unzip_dest = "."
    unzip_dest = app_name
    unzipped_dir = zip_name.rsplit(".", 1)[0]
    unzipped_dir = app_name

    

    # 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, app_dir))
    unzip(zip_name, unzip_dest)
    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)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)
# -*- 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()
    dict_arch = {
        "x64":"win32.win32.x86_64",}    
        
    git_repo = "ObeoNetwork/InformationSystem"
    url_api = "https://api.github.com/repos/%s/releases/latest" % 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))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('.zip') and dict_arch[control.architecture] in download["browser_download_url"]:
            url_dl = download["browser_download_url"]
            version = json_load["name"][28:]
            filename = download["name"]
            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)
   
    control.set_software_version(version)
    control.save_control_to_wapt()
77a4f33f15acfb4a7a7ccc06636ee0826ab9be5e90b49b7017abdc317e965490 : setup.py
 : __pycache__
32d49d8617eb7a7b2a8a826ea26b7fa757458f485a1edec22f7cdac0a828a3c9 : update_package.py
b7178dfcf5677397df26776488e5361170407f5509da488bf6ebbea698aa7c9e : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
8df21f37a28cf36f4cd16a41a90c28c4670d558d13c73200fdc79dcf858e03a2 : luti.json
5d12cbc47ff2c77b167485d5b63220ae5f7aafb15afaa743a53762f6d46599c2 : ISDesigner-4.1.1-20240229-1545-win32.win32.x86_64.zip
280be31e40252a6ed1220a58383da96420ead220682ab1c07817e7fa9fcca0b1 : WAPT/control