tis-opale icon

opale

Paquet d’installation silencieuse pour opale

24.0.0-1

  • package: tis-opale
  • name: opale
  • version: 24.0.0-1
  • maintainer: Jordan ARNAUD
  • licence: MPL-2.0, GPL-3.0-only, LGPL-3.0-only, CECILL-2.1
  • locale: fr
  • target_os: darwin
  • architecture: x64
  • signature_date:
  • size: 226.11 Mo
  • homepage : https://download.scenari.software/

package           : tis-opale
version           : 24.0.0-1
architecture      : x64
section           : base
priority          : optional
name              : opale
categories        : 
maintainer        : Jordan ARNAUD
description       : Opale enables you to create pedagogical documents for classroom, distance or blended training
depends           : 
conflicts         : 
maturity          : PROD
locale            : fr
target_os         : darwin
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Opale permet de créer des documents pédagogiques pour la formation présentielle, à distance ou mixte
description_pl    : Opale może być używany do tworzenia dokumentów dydaktycznych do nauczania w klasie, na odległość lub w trybie mieszanym
description_de    : Opale ermöglicht die Erstellung von Unterrichtsmaterialien für Präsenz-, Fern- und Blended-Learning-Kurse
description_es    : Opale permite crear documentos didácticos para la enseñanza presencial, a distancia o semipresencial
description_pt    : O Opale pode ser utilizado para criar documentos pedagógicos para o ensino presencial, à distância ou misto
description_it    : Opale può essere utilizzato per creare documenti didattici per l'apprendimento in aula, a distanza o misto
description_nl    : Opale kan worden gebruikt om lesdocumenten te maken voor klassikaal leren, leren op afstand of blended learning
description_ru    : Opale можно использовать для создания учебных документов для аудиторного, дистанционного или смешанного обучения
audit_schedule    : 
editor            : 
keywords          : 
licence           : MPL-2.0, GPL-3.0-only, LGPL-3.0-only, CECILL-2.1
homepage          : https://download.scenari.software/
package_uuid      : b784588b-988c-4477-93e7-9081b6d84a47
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 8af7c92e52b3d762613fd95757228df955329f7c9f34b5ca767e5ae791d950b2
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Z6/fs+1EXmAB5nthe6jG5q0oiZ+zq1Ea4wPT+4GStS6TD6wGcismAuuh84WSxYtqjuGKMO9p+CF0q8EbC51hEgYwV9nEZqUsnqXkOJuwSXEiR6PWoMWHd4qaccoYStjgHo8gcgeh18GLy93sfOq2J6kBI+T77qvuahDybyb5Hq+BTRg94eTnXFyAJm9kEev85dPwCSJvAv0rGAdQmyie8yMqEDCvuUv3T+xEoGAPjXbUqe3Uwarc3MkTpTWZzYH9/xossLHsL1oygr2JQNH4OxaVcuqDPHcQStjZPw2rdEbqUc62Vc9jEffP1niRLyfnfowRYpz2HGRN4G58UUHIrg==
signature_date    : 2024-07-23T15:00:15.732410
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 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    install_dmg(glob.glob("Opale*mac_x64.dmg")[0])


def uninstall():
    remove_tree("/Applications/Opale 24.app")

import urllib.parse
import os
from setuphelpers import *
from setupdevhelpers import *
import glob
import requests

def update_package():
    # Declare local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    lang_dict = {'en': 'en-US', 'fr': 'fr-FR'}

    lang = control.locale
    url_base = "https://download.scenari.software/Opale/?productInfos"
    response = requests.get(url_base, proxies=proxies, allow_redirects=True)
    response.raise_for_status()

    # Assuming the response is a JSON containing product information
    product_info = response.json()
    version = response.json()['v']

    # Compose the dynamic URL with the latest version
    url_version = f"https://download.scenari.software/Opale@{version}/?productInfos"
    response = requests.get(url_version, proxies=proxies, allow_redirects=True)
    response.raise_for_status()

    # Assuming the response is a JSON containing file information
    product_files_info = response.json()
    
    # Search for the .exe file for Windows corresponding to the language of 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('.dmg') and file['metas']['os'] == 'mac' and file['metas']['lang'] == lang_dict[control.locale]:
                exe_file = file['metas']['path']
                break
    else:
        raise ValueError("The format of the file information is incorrect. Expected: key 'ch' in the dictionary.")

    if not exe_file:
        raise ValueError(f"Unable to find the .exe file for Windows corresponding to the language {control.locale}.")

    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("download:", filename)

    for f in glob.glob("*.exe"):
        if f != filename:
            remove_file(f)
 
    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

9c90d4e34e388bd5cf1614f9a9707878f1ce9800212364514617956dc35e7bf4 : setup.py
84370344b11e03e6d9ebfb80765434301d57db2cac88232f0a9f4477e20981fb : update_package.py
8af7c92e52b3d762613fd95757228df955329f7c9f34b5ca767e5ae791d950b2 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
0afbb7d8dbcef94ea0bf9cecfd30e9741f7b35772e4a5c01f180a067dd1bcd0d : luti.json
3f8d0d03c3734a8905b79eaf4547cd1cd58596f74151ce168364be37bd38a27b : Opale24.0.0_fr-FR_202407121353_mac_x64.dmg
c495f522877cd6654b01eb7e676be077199d59a9d9235425068ff8cbbf45ccb6 : WAPT/control