tis-protonmail-bridge icon

Proton Mail Bridge

Paquet d’installation silencieuse pour Proton Mail Bridge

3.17.0-2

  • package: tis-protonmail-bridge
  • name: Proton Mail Bridge
  • version: 3.17.0-2
  • categories: Messaging
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT,Amel FRADJ
  • editor: Proton AG
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: proton-bridge
  • architecture: x64
  • signature_date:
  • size: 67.74 Mo
  • installed_size: 173.99 Mo
  • homepage : https://proton.me/fr/mail/bridge

package           : tis-protonmail-bridge
version           : 3.17.0-2
architecture      : x64
section           : base
priority          : optional
name              : Proton Mail Bridge
categories        : Messaging
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT,Amel FRADJ
description       : Proton Mail Bridge is a desktop application that runs in the background, encrypting and decrypting messages as they enter and leave your computer
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 173989655
impacted_process  : proton-bridge
description_fr    : Proton Mail Bridge est une application de bureau qui fonctionne en arrière-plan et qui crypte et décrypte les messages à mesure qu'ils entrent et sortent de votre ordinateur
description_pl    : Proton Mail Bridge to aplikacja działająca w tle, która szyfruje i odszyfrowuje wiadomości przychodzące i wychodzące z komputera użytkownika
description_de    : Proton Mail Bridge ist eine Desktop-Anwendung, die im Hintergrund läuft und Nachrichten verschlüsselt und entschlüsselt, während sie auf Ihrem Computer ein- und ausgehen
description_es    : Proton Mail Bridge es una aplicación de escritorio que se ejecuta en segundo plano, cifrando y descifrando los mensajes a medida que entran y salen del ordenador
description_pt    : O Proton Mail Bridge é uma aplicação de ambiente de trabalho que funciona em segundo plano, encriptando e desencriptando mensagens à medida que estas entram e saem do seu computador
description_it    : Proton Mail Bridge è un'applicazione desktop che funziona in background, crittografando e decrittografando i messaggi mentre entrano ed escono dal computer
description_nl    : Proton Mail Bridge is een desktopapplicatie die op de achtergrond draait en berichten versleutelt en ontsleutelt terwijl ze je computer binnenkomen en verlaten
description_ru    : Proton Mail Bridge - это настольное приложение, которое работает в фоновом режиме, шифруя и расшифровывая сообщения по мере их поступления и отправления с вашего компьютера
audit_schedule    : 
editor            : Proton AG
keywords          : email,encrypt
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : https://proton.me/fr/mail/bridge
package_uuid      : 4592fe64-1cf2-4d8e-acf7-34419bdff1d1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4aac9a7519cefa9566998d5662c181f17d6b04008a212b02f93d646f7e7dee51
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-02-15T10:25:12.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         : SjlpqFogD9CazLsez9j7wdC8nPbtGCDBFVdKrueh5X+5+n+YDsk5I6msbB9ruF1ya6yLVXct7RjEkemczM90bUSQqsnXOjpJ3l+X/6RCKQHRY54Npe6uJ5/+hl7cI7KxYailE9TG9xlNH+w0d1U/YczFXlhfmWh9krc8yiIutXgyGZ+kKOn1wFGIlW9qHiXG42cPpmBsds+vOh73pSW2UvT8MXNAtACkSN08FtJ/NwNtivLqZuT/kLFaCtgA86jsggSYj8EPDUMDeI73OZnalRKpbfG8WJHD8Nv1+VZHvVlnFqFsSYRfly6jzCxdcX6YN5Aru4oqep5Kf+Qwnnbtzw==

# -*- coding: utf-8 -*-
from setuphelpers import *

"""
 {
   "key":"Proton Mail Bridge 3.13.0",
   "name":"Proton Mail Bridge",
   "version":"3.13.0",
   "install_date":"",
   "install_location":"C:\\Program Files\\Proton AG\\Proton Mail Bridge\\",
   "uninstall_string":"C:\\ProgramData\\Caphyon\\Advanced Installer\\{7EC0ECB3-08A2-49FB-A098-94F01D959FC8}\\Bridge-Installer.exe /i {7EC0ECB3-08A2-49FB-A098-94F01D959FC8} AI_UNINSTALLER_CTP=1",
   "publisher":"Proton AG",
   "system_component":0,
   "win64":true
  },
  {
   "key":"{7EC0ECB3-08A2-49FB-A098-94F01D959FC8}",
   "name":"Proton Mail Bridge",
   "version":"3.13.0",
   "install_date":"2024-10-09 00:00:00",
   "install_location":"C:\\Program Files\\Proton AG\\Proton Mail Bridge\\",
   "uninstall_string":"MsiExec.exe /I{7EC0ECB3-08A2-49FB-A098-94F01D959FC8}",
   "publisher":"Proton AG",
   "system_component":0,
   "win64":true
  }
"""

def install():
  bin_name = glob.glob("Bridge-Installer.exe")[0]

  install_exe_if_needed(
      bin_name,
      silentflags="/quiet",
      key=f'Proton Mail Bridge {control.get_software_version()}',
      min_version=control.get_software_version()
  )

  uninstallkey.clear()

def uninstall():

  killalltasks(ensure_list(control.impacted_process))

  for soft in installed_softwares(name='Proton Mail Bridge'):
    if 'MsiExec' in soft['uninstall_string']:
      run(uninstall_cmd(soft['key']))

# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {"windows": ".exe", "redhat_based" : ".rpm", "debian_based" : ".deb", "macos": ".dmg"}
    api_url = "https://api.github.com/repos/ProtonMail/proton-bridge/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".exe") and update_dict[control.target_os] in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"].split(" ")[2].replace("v", "")
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un exe a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    version = get_version_from_binary(latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

9aa41662786d03175435cbe79a0df54ef2a680258ce47038b4befc40d3cc4ce6 : Bridge-Installer.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
e01cc239cf23d2e59118a61d097adc697bcf05f76972340626da0e927a8cbea5 : WAPT/control
4aac9a7519cefa9566998d5662c181f17d6b04008a212b02f93d646f7e7dee51 : WAPT/icon.png
7e0a1964ed8e3bf1e2df7f9956150dff8c31c5264f6dbbdf566cd7be05ea732a : luti.json
5d7036d0da58b28d23738dc5a941e5f8d26c2962de60575a6b7ae9a558056853 : setup.py
6ed025e662c128850329fe14ac5c3362d3bbe45620ab8eed154329d1d25a2cb7 : update_package.py