- package: tis-canoprof
- name: Canoprof
- version: 2.2.0-1
- categories: education
- maintainer: Amel FRADJ
- licence: MPL 2.0 GPL 3.0 LGPL 3.0 CeCILL 2.1
- locale: fr
- target_os: windows
- architecture: x64
- signature_date:
- size: 161.27 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 : Amel FRADJ
description : Designing, publishing and sharing teaching resources for primary and secondary schools
depends :
conflicts :
maturity : PROD
locale : fr
target_os : windows
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 : 859d023e-71d9-4e63-9f04-905da9a5041b
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : ef797ba7d1f86d9a2c9407f83214f30dd35a9ac09e5a8d2fd5003f2625f4e959
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : yGLsgHU2WRywAkQ9aa15VDcuAH7Odkgbh+CY0VN13/MuZHm8OJ6jjS6l4qP0ITp/NySnIWGxkchWPbPfRlNBOqOEeFp3qY7GL9ip2yS275WYE42vk3NKba0xu1GhjP+K7AMbvckdjUj3eMFMDkATiYfdQtVaSDM3Cpf9uDgJLn5h2ZyQfurldtc5dxnAKvi4ipisYsfhSNRWk/fyjfXt5882KoHtZmMBf0Nimib/sJZdyVvRWmYhZKtNSlvRheHYaa7BqHJBnhJouqwCimef2SGnRi35ZOgfDkPKA/x/xXc7BnENFnbjda7QB0ht6i56arZhhPTd6gp/1DZNbxu6wg==
signature_date : 2024-06-08T16:01:08.958948
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 *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
"key":"f12cc5b7-c1db-58f3-95ea-79d6ee07d6da",
"name":"Canoprof 2",
"version":"2.2.0-final.202404151315",
"install_date":"",
"install_location":"",
"uninstall_string":"\"C:\\Program Files\\Canoprof 2\\Uninstall Canoprof 2.exe\" /allusers",
"publisher":"canope",
"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('Canoprof*_win_x64.exe')[0]
# Installing the software
install_exe_if_needed(bin_name,
silentflags='/S',
key='f12cc5b7-c1db-58f3-95ea-79d6ee07d6da',
min_version=control.get_software_version(),
get_version=get_version,
timeout=600,
)
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'}
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('.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()
ec83495d7c167be676d9b77c3fdb58e9937c66e9c02dd177f43260235b874262 : setup.py
865338e40dc0f0927d2499e5bea48a2b7fcb8ee5745dbb8415bf9d27dae02c99 : Canoprof2.2.0_fr-FR_202404151315_win_x64.exe
d375f54cf3654e1ec03165ee1f153bfca529809cbc5a3fd13169c504c863e40a : update_package.py
ef797ba7d1f86d9a2c9407f83214f30dd35a9ac09e5a8d2fd5003f2625f4e959 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a4baebab614f3d85f17c228e6de7a60e4b5b2f900be94f42362352912e86a1ee : luti.json
ea6c0909e10acada12c7f5714e87521c09ee581c2a54af441088bae0b01656ff : WAPT/control