tis-thebrain icon

TheBrain

Paquet d'installation silencieuse pour TheBrain

14.0.116.0-4
Utilities
Utilities

  • package: tis-thebrain
  • name: TheBrain
  • version: 14.0.116.0-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: 64.49 Mo
  • homepage : https://www.thebrain.com/

package           : tis-thebrain
version           : 14.0.116.0-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      : fcc9e37f-cc0d-453d-bd9a-069dcb98d0d0
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-06-13T11:03:40.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         : m6Qf1DQbIRaePwIBGll5OSoqacC2Cel/kiMXujU+34jGj5narEI/AEnyUvSWU5sD2PMrSX0TiVCwRo3mXeJchoyvMtFWgqwjL+1cgk+29qZgr2J2RWjvu17DHuiiC/roadAsnLa0isLVUCJofAlVrBt+RCQZ49JHPX9vJScq/hnY7f4QIsp4uix6G/7YLU5fHVAUzdBKc7IicFnMnmJs/uX3aCg88UsC0UFrhYMwLoCJ92pnsob2AGT3JKR1LnkblH1LG6gad8bW/z7biJGAiYyeOdDIGup9TpFQTCtbqh+q3aderY755n0BKmDQZHJimUpKh0ejyy5aYEg76fTlkg==

# -*- 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]

    version = latest_bin.split('_')[1]

    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

852e8b7db7948117d453b478d29fde2fc63a24dc2d1ebcdb0d072e8c32d7fa6f : TheBrain_14.0.116.0_Installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
c094887ccb9eb3f3f1e3931c7e854c19525da68ed8837e0920e4a640f81d054d : WAPT/control
01bfc5dbbd94d46fb483b61445d5028a00f5b04e768b578bacc75f2ef422ae0a : WAPT/icon.png
ffaaf5aab3252b3a1df323745bc5d88d203d21a290bb4893151b9b19328359db : luti.json
d43b5474ab270a1fa341c545dda2686b0f8e9859af6ffa8c29ba861e464a12d5 : setup.py
8a138598e4b277e8ab36f6b5e6f0b85a67592685a0c867afdcfb0d3ddcd43042 : update_package.py