tis-canoprof icon

Canoprof

Silent install package for Canoprof

2.2.0-1

  • package: tis-canoprof
  • name: Canoprof
  • version: 2.2.0-1
  • categories: education
  • maintainer: Jordan ARNAUD
  • licence: MPL 2.0 GPL 3.0 LGPL 3.0 CeCILL 2.1
  • locale: fr
  • target_os: darwin
  • architecture: x64
  • signature_date:
  • size: 196.89 Mo
  • homepage : https://doc.scenari.software/Canoprof/fr/

package           : tis-canoprof
version           : 2.2.0-1
architecture      : x64
section           : base
priority          : optional
name              : Canoprof
categories        : education
maintainer        : Jordan ARNAUD
description       : Designing, publishing and sharing teaching resources for primary and secondary schools
depends           : 
conflicts         : 
maturity          : PROD
locale            : fr
target_os         : darwin
min_wapt_version  : 
sources           : https://download.scenari.software/Canoprof/
installed_size    : 
impacted_process  : 
description_fr    : Conception, publication et partage de ressources pédagogiques pour le primaire et le secondaire
description_pl    : Projektowanie, publikowanie i udostępnianie materiałów dydaktycznych dla szkół podstawowych i średnich
description_de    : Konzeption, Veröffentlichung und Austausch von Bildungsressourcen für die Primar- und Sekundarstufe
description_es    : Diseñar, publicar y compartir recursos didácticos para primaria y secundaria
description_pt    : Conceber, publicar e partilhar recursos didácticos para escolas primárias e secundárias
description_it    : Progettare, pubblicare e condividere risorse didattiche per le scuole primarie e secondarie
description_nl    : Lesmateriaal voor basisscholen en middelbare scholen ontwerpen, publiceren en delen
description_ru    : Разработка, публикация и обмен учебными ресурсами для начальной и средней школы
audit_schedule    : 
editor            : 
keywords          : 
licence           : MPL 2.0 GPL 3.0 LGPL 3.0 CeCILL 2.1
homepage          : https://doc.scenari.software/Canoprof/fr/
package_uuid      : bf6e7cd6-911d-4973-aa65-c03f563e3f2b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ef797ba7d1f86d9a2c9407f83214f30dd35a9ac09e5a8d2fd5003f2625f4e959
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Bm1m2rJ/isEbEQ6osWzhzGBaNRAYkJoWTEPu3TpedXVF4N1DgWjoX+DTy3p03unQHqUR/4IWuR1g3IYotvaWtfjMGnO0cpJTLDUTxLJzx4L2y0oTDsmAcVIXNOLf+lJvkbbSGFyfKbwgHWIXoiMFnj9QN2LmKggSzXPkylFrfuK8k/GK5vEChZ0SbQE84LKx5/zuVSuySuEjxiD4uWmpTugpgwNJkjys2cpEVfsITYiUfSk3gij5YSWXIr20tP2BvAr8J8+B6aYXVFT3IUsdobs5HM2P/1QuQ5rht1DvBa7JYpb4sk8VAxKUxCM6Li/UtyY8SBVjWq81gTOdX57l3g==
signature_date    : 2024-07-31T13:00:42.916935
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("Canoprof*_mac_x64.dmg")[0])


def uninstall():
    remove_tree("/Applications/Canoprof 2.app")

# -*- 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'}
    lang = control.locale
    url_base = "https://download.scenari.software/Canoprof/?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/Canoprof@{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('.dmg') and file['metas']['os'] == 'mac' 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("Download:", filename)


    for f in glob.glob("*.dmg"):
        if f != filename:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

909fc95a218a4a031fbbe9d5b425cdd148a12e2187dfdd1b38e0bdd76e942cd4 : setup.py
d45b66dbfe664185b75ed94baacdd47adb0486f31488eef870a64ec6db4d09e2 : update_package.py
ef797ba7d1f86d9a2c9407f83214f30dd35a9ac09e5a8d2fd5003f2625f4e959 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a3db713333066367fe3ffbb44f5e4dfb8ad75d9d9e791b60669e8c8e2d340749 : luti.json
fce01afd70b683902d86847f1d59179cfdbed9e145798ff3f35331b02402938d : Canoprof2.2.0_fr-FR_202404151315_mac_x64.dmg
2c42fe6638ff7ed92c3010e429f17c713450d3fa0998cb0d2456a050dd9c1b28 : WAPT/control