tis-dokiel icon

Dokiel

Silent install package for Dokiel

25.0.4-1

  • package: tis-dokiel
  • name: Dokiel
  • version: 25.0.4-1
  • categories: education
  • maintainer: Amel FRADJ
  • licence: MPL 2.0 GPL 3.0 LGPL 3.0 CeCILL 2.1
  • locale: en
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 236.77 Mo
  • homepage : https://doc.scenari.software/Dokiel/

package           : tis-dokiel
version           : 25.0.4-1
architecture      : x64
section           : base
priority          : optional
name              : Dokiel
categories        : education
maintainer        : Amel FRADJ
description       : Dokiel is dedicated to technical communication and software documentation
depends           : 
conflicts         : 
maturity          : PROD
locale            : en
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Dokiel est dédié au domaine de la communication technique et documentation logicielle
description_pl    : Dokiel zajmuje się komunikacją techniczną i dokumentacją oprogramowania
description_de    : Dokiel ist dem Bereich der technischen Kommunikation und Softwaredokumentation gewidmet
description_es    : Dokiel se dedica a la comunicación técnica y la documentación de software
description_pt    : A Dokiel dedica-se à comunicação técnica e à documentação de software
description_it    : Dokiel si occupa di comunicazione tecnica e documentazione software
description_nl    : Dokiel houdt zich bezig met technische communicatie en softwaredocumentatie
description_ru    : Dokiel занимается технической коммуникацией и документированием программного обеспечения
audit_schedule    : 
editor            : 
keywords          : 
licence           : MPL 2.0 GPL 3.0 LGPL 3.0 CeCILL 2.1
homepage          : https://doc.scenari.software/Dokiel/
package_uuid      : b50e13f5-5279-4f99-b35c-672be06e5d65
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 4bd0533e447e7e42233e44fe44531538991148c0697d019986f7ed54e16e3277
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-09-16T16:13:04.000000
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
signature         : WWDml/Z56mkjYIhF6E9nnu1K8YJgFAvVRz+f9o8084u4L2Nz8m3waLHvBKn9hxoflXnggNoPlBmxJutKF2ElPESNfESC9u43CQU13T4NJyEtmmUzuWoz2DE1ElqK4+FmVIGKUm2Ta/mUL/wt6E2rU+VhxrKh2t3V6/WIY4p/X5ZBtg58unARTFqsVJHy4kR15WNwTkFRuJp3QJCubZ8H3j6xMDQGOCmz8jp0BEJ4oBc7t6IKIcLxL9RdXHoi9BVmQqRjJFvp63pWF/JiIYhrgf8gd77SHvvVQR5Ru8JbwQe9iPPARRc0GvxfwTqIBZC5udjdLlEWQL7bOsVyJxFdMw==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"b9fb4469-b524-5f97-9c5b-5dfcc39e8ef2",
   "name":"Dokiel 6",
   "version":"6.0.6-final.202404091417",
   "install_date":"",
   "install_location":"",
   "uninstall_string":"\"C:\\Program Files\\Dokiel 6\\Uninstall Dokiel 6.exe\" /allusers",
   "publisher":"scenari",
   "system_component":0,
   "win64":true
  }
"""
# 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('Dokiel*_win_x64.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S',
        name='Dokiel',
        min_version=control.get_software_version(),
        get_version=get_version,
        timeout=600,
    )

def uninstall():
    for to_uninstall in installed_softwares(name="Dokiel"):
        print(f"Removing: {to_uninstall['name']} ({to_uninstall['version']})")
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

def get_version(app_registry_dict):
    return app_registry_dict["version"].split("-")[0]

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


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    lang_dict = {'fr':'fr-FR',
    'en':'en-US'}
    lang = control.locale
    url_base = "https://download.scenari.software/Dokiel/?productInfos"
    response = requests.get(url_base, proxies=proxies, allow_redirects=True)
    response.raise_for_status()

    # Supposons que la réponse soit un JSON contenant les informations du produit
    product_info = response.json()
    
    # Trouve la version la plus récente dans la liste 'hist'
    version = product_info.get('v', [])
    # Compose l'URL dynamique avec la dernière version
    url_latest_version = f"https://download.scenari.software/Dokiel@{version}/?productInfos"    
    response = requests.get(url_latest_version, proxies=proxies, allow_redirects=True)
    response.raise_for_status()
    # Supposons que la réponse soit un JSON contenant les informations des fichiers
    product_files_info = response.json()
    # Rechercher le fichier .exe pour Windows correspondant à la langue de control.locale
    exe_file = None
    if 'ch' in product_files_info:
        for file in product_files_info['ch']:
            if isinstance(file, dict) and file['n'].endswith('.exe') and file['metas']['os'] == 'windows' and file['metas']['lang'] == lang_dict[control.locale]:
                exe_file = file['metas']['path']
                break
    

    url_download = f"https://download.scenari.software{exe_file}"
    filename = exe_file.split('/')[-1]
    if not isfile(filename):
        package_updated = True
        wget(url_download, filename, proxies=proxies)
        print("Téléchargé:", filename)


    for f in glob.glob("*.exe"):
        if f != filename:
            remove_file(f)
 
    version = str(Version(get_version_from_binary(filename).split('-')[0],3))

    control.set_software_version(version)
    control.save_control_to_wapt()

105345257b590fc0e190069eb6495038c83191a95f1e690844e98d471498f8c2 : Dokiel25.0.4_en-US_202509111435_win_x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8b5c9ee561a6f4d11298065005c8dbdcd7a4a56f4a6346f5475e4fb3b81453e8 : WAPT/control
4bd0533e447e7e42233e44fe44531538991148c0697d019986f7ed54e16e3277 : WAPT/icon.png
67267a411c0e043143792f0794a828c90f93222bfb2f60d0479a028a69a109ff : luti.json
df0f9003dca05c60b51dccb3b8eed03e6686142a05cf9451c0a99225138bb0cb : setup.py
90e9d429b6eb8b7ad5f42dc14f1b693c7b5ddc747be13ca46d97ba9b23b25b76 : update_package.py