TheBrain
Paquet d’installation silencieuse pour TheBrain
14-4
Utilities
Utilities
- package: tis-thebrain
- name: TheBrain
- version: 14-4
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: proprietary_free,wapt_private
- target_os: windows
- impacted_process: TheBrain
- architecture: x64
- signature_date:
- size: 63.95 Mo
- homepage : https://www.thebrain.com/
package : tis-thebrain
version : 14-4
architecture : x64
section : base
priority : optional
name : TheBrain
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : TheBrain organizes and finds everything the way you think it is
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process : TheBrain
description_fr : TheBrain organisez et trouvez tout comme vous le pensez
description_pl : TheBrain organizuje i znajduje wszystko tak, jak myślisz
description_de : TheBrain organisieren und finden Sie alles so, wie Sie es sich vorstellen
description_es : TheBrain organiza y encuentra todo como tú crees
description_pt : TheBrain organiza e encontra tudo da forma como pensa que está
description_it : TheBrain organizza e trova tutto nel modo in cui pensate che sia
description_nl : TheBrain organiseert en vindt alles zoals jij denkt dat het is
description_ru : TheBrain организует и находит все так, как вы думаете
audit_schedule :
editor :
keywords :
licence : proprietary_free,wapt_private
homepage : https://www.thebrain.com/
package_uuid : 05428455-0eb0-4204-9a8f-487443f7e94a
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10
max_os_version :
icon_sha256sum : 01bfc5dbbd94d46fb483b61445d5028a00f5b04e768b578bacc75f2ef422ae0a
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-01-03T16:04:29.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 : G1tB/fP/Fxjv5CpQAz2RWhVmE0VP64Gbv1SklJ1iSoukOXBErl4uUN9FvJQ5Cyzx6xr7haPrbZDazxsGhWnsu2gfwXPygvAo3BvoNlxucIdl2s6p/645gLldmzhPiwyFTMin3VXbudKJ+B6dPTtW96Gj/wOoImH6p2GrnwC8q4LQyWMcXPabPDaKIJTanJHS5/Fe9zrit/bEb7PTgJnvpdXtHL1Nk6fRvi1dwEye0Nh2/DEPrAQ25e2zzNrstsmY4HqpWyKxM1I6DYERxrWDgjx1mSuKsE4pFZLgJM5f9BThqVDD2l2u6GEAWYN6RXhDXl4FcXyu2IQ6n5bF4P435Q==
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
bin_name = glob.glob('TheBrain*.exe')[0]
# Install the software
install_exe_if_needed(
bin_name,
silentflags='/quiet /norestart',
name="^TheBrain$",
min_version=control.get_software_version(),
)
uninstallkey.clear()
def uninstall():
print(f"Removing: {control.name}")
for uninstall in installed_softwares(name="^TheBrain$"):
if uninstall["uninstall_string"].endswith("uninstall") :
killalltasks(control.get_impacted_process_list())
run(uninstall_cmd(uninstall["key"]))
wait_uninstallkey_absent(uninstall["key"])
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import re
def update_package():
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
app_name = control.name
target_os = control.target_os.lower()
# IDs de téléchargement selon l'OS https://salesapi.thebrain.com/?a=doDirectDownload&id=()
if target_os in ['windows']:
download_id = '14001'
os_name = 'Windows'
elif target_os in ['mac']:
download_id = '14000'
os_name = 'mac'
else:
error(f"Unsupported OS: {target_os}")
# URL de l'API qui redirige vers le téléchargement
api_url = f"https://salesapi.thebrain.com/?a=doDirectDownload&id={download_id}"
# Suivre la redirection pour obtenir l'URL réelle
print(f"Download URL for {os_name}...")
download_url = requests.head(api_url, proxies=proxies, allow_redirects=True).url
# Nom du fichier
latest_bin = download_url.rsplit('/', 1)[-1].replace("%20", "_")
latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
# Extraire la version (ex: TheBrain_14_0_113_0_Windows.exe -> 14.0.113.0)
version_match = re.search(r'(\d+)', latest_bin)
if version_match:
version = '.'.join(version_match.groups())
else:
error("Could not extract version from filename")
print(f"Latest {app_name} version is: {version}")
print(f"Download URL is: {download_url}")
# Télécharger si nécessaire
if not isfile(latest_bin):
print(f"Downloading: {latest_bin}")
wget(download_url, latest_bin, proxies=proxies)
else:
print(f"Binary already present: {latest_bin}")
# Mettre à jour la version du package
if Version(version) > Version(control.get_software_version()):
print(f"Version updated: {control.get_software_version()} -> {version}")
package_updated = True
else:
print(f"Version up-to-date: {version}")
# Supprimer les anciens binaires
for f in glob.glob(f'*.{latest_bin_extension}'):
if f != latest_bin:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
return package_updated
555df29a4be2b1d954a6cee5eb43239b1db274467054a67587068cd8ee9b7933 : TheBrain_14.0.113.0_Installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2ead99addee5817919a34284f51740478e3d31eaf7c9b38b6b8f7ca1fac7c36e : WAPT/control
01bfc5dbbd94d46fb483b61445d5028a00f5b04e768b578bacc75f2ef422ae0a : WAPT/icon.png
b71902cdbb74a47b62870eaec84037ae0cde7c2b628b25df8ab3365ac8c82375 : luti.json
d43b5474ab270a1fa341c545dda2686b0f8e9859af6ffa8c29ba861e464a12d5 : setup.py
ad11a2181dcba900ccac72f4fc2670e3680c8bd5502f9259c8d73df277fb85ce : update_package.py