tis-thunderbird icon

Mozilla Thunderbird

Paquet d’installation silencieuse pour Mozilla Thunderbird

140.0-13

  • package: tis-thunderbird
  • name: Mozilla Thunderbird
  • version: 140.0-13
  • categories: Messaging,Utilities
  • maintainer: Simon Fonteneau
  • editor: Mozilla
  • licence: MPL1.1,GPLv2.0,LGPLv2+
  • locale: it
  • target_os: debian_based
  • impacted_process: thunderbird
  • architecture: x64
  • signature_date:
  • size: 74.27 Mo
  • homepage : https://www.thunderbird.net

package           : tis-thunderbird
version           : 140.0-13
architecture      : x64
section           : base
priority          : optional
name              : Mozilla Thunderbird
categories        : Messaging,Utilities
maintainer        : Simon Fonteneau
description       : Mozilla Thunderbird is a free and open-source cross-platform email client, news client, RSS, and chat client developed by the Mozilla Foundation
depends           : 
conflicts         : 
maturity          : PROD
locale            : it
target_os         : debian_based
min_wapt_version  : 2.0
sources           : 
installed_size    : 
impacted_process  : thunderbird
description_fr    : Mozilla Thunderbird est un client de messagerie, libre, distribué gratuitement par la fondation Mozilla
description_pl    : Mozilla Thunderbird to darmowy i open-source'owy, wieloplatformowy klient poczty elektronicznej, klient wiadomości, RSS i klient czatu opracowany przez Fundację Mozilla
description_de    : Mozilla Thunderbird ist ein kostenloser und quelloffener, plattformübergreifender E-Mail-, News-, RSS- und Chat-Client, der von der Mozilla Foundation entwickelt wurde
description_es    : Mozilla Thunderbird es un cliente de correo electrónico multiplataforma, cliente de noticias, RSS y chat gratuito y de código abierto desarrollado por la Fundación Mozilla
description_pt    : Mozilla Thunderbird é um cliente de correio electrónico gratuito e de código aberto, cliente de notícias, RSS, e cliente de chat desenvolvido pela Fundação Mozilla
description_it    : Mozilla Thunderbird è un client di posta elettronica multipiattaforma, client di notizie, RSS e chat gratuito e open-source sviluppato dalla Mozilla Foundation
description_nl    : Mozilla Thunderbird is een gratis en open-source cross-platform e-mail client, nieuws client, RSS, en chat client ontwikkeld door de Mozilla Foundation
description_ru    : Mozilla Thunderbird - это бесплатный кросс-платформенный почтовый клиент с открытым исходным кодом, клиент новостей, RSS и чат-клиент, разработанный Mozilla Foundation
audit_schedule    : 
editor            : Mozilla
keywords          : mail,messagerie,imap,pop
licence           : MPL1.1,GPLv2.0,LGPLv2+
homepage          : https://www.thunderbird.net
package_uuid      : c59f8183-0222-41b9-a182-8cabc9833a96
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.thunderbird.net/thunderbird/releases/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : fa4433e9df1b560475197ccd3107e5ad6681153d201e2824de80e208b5ad2962
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-03T00:07:54.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         : uy1ZXUIlD5Aa06TRmldHK+SZuQ0OBznuh9+X8EoIFi5j64XQTQVZl7kpVeKIV7wUpcbE+jV3UCig28n3xVfEpaseXL2i4dDD2lMMWNDcW2KkGfPQUkatGIi1WJGnm0bihrqsv3hsE4J4/KLjelJaX+tGNUelPVSmtMosgAJ5ID/JO30rvbdXQPY1UPEQZH/ISYnXVtbHDAKfLxK0WtUwkvt/Xe8jyT39ZuxLchVxmT9rF8asGzed2w6ULZ4eaI276KDWlb5iC+QImGd1FlLtMMMM7Sj+5deItU1k/C0IY2x45wfiyKn454NqPJWIQIlzlR/I3rvBek8KteiAOVJ8iw==

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

def install():
    package_version = control.version.split("-")[0]
    filename = glob.glob('*.tar.xz')[0]

    run_notfatal("apt-get remove thunderbird -y")
    extract(filename)
    killalltasks("thunderbird")
    if isdir("/opt/thunderbird"):
        remove_tree("/opt/thunderbird")
    copytree2("thunderbird", "/opt/thunderbird")
    run("chown -R root:root /opt/thunderbird")
    run("ln -sf /opt/thunderbird/thunderbird /usr/bin/thunderbird")
    filecopyto("thunderbird.desktop", "/usr/share/applications/thunderbird.desktop")
    run("chown root:root /usr/share/applications/thunderbird.desktop")


def uninstall():
    killalltasks("thunderbird")
    remove_file("/usr/share/applications/thunderbird.desktop")
    remove_tree("/opt/thunderbird")

def extract(filename, path="."):
    with tarfile.open(filename) as tar:
        tar.extractall(path)

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


def update_package():
    import re, requests, glob

    proxies = {}
    if isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxies = {"http": proxywapt, "https": proxywapt}

    # Downloading
    lang = control.locale
    # Translating locale
    if "en" in lang:
        lang = "en-US"
    if "es" in lang:
        lang = "es-ES"

    url = requests.head("https://download.mozilla.org/?product=thunderbird-latest&os=linux64&lang=%s" % (lang), proxies=proxies).headers["Location"]
    url = url.replace('.tar.xz','.tar.xz')

    filename = url.rsplit("/", 1)[1].replace("%20", " ")


    version = filename.split("-")[1].split('.tar')[-2]
    datajson = json.loads(wgets("https://product-details.mozilla.org/1.0/thunderbird_versions.json", proxies=proxies))
    version_from_api = datajson.get("LATEST_THUNDERBIRD_VERSION_NEXT", "")
    if not version_from_api:
        version_from_api = datajson["LATEST_THUNDERBIRD_VERSION"]


    url = url.replace(version, version_from_api)
    version = version_from_api
    filename = url.rsplit("/", 1)[1].replace("%20", "_")

    if not isfile(filename):
        print("Downloading %s from %s" % (filename, url))
        wget(url, filename, proxies=proxies)
    else:
        print(filename + " already exist")

    # updates control version from filename, increment package version.
    control.set_software_version(version.replace('esr',''))
    control.save_control_to_wapt()

    # removes old exe
    if isfile(filename):
        exes = glob.glob("*.tar.gz")
        for fn in exes:
            if fn != filename:
                print("Delete " + fn)
                remove_file(fn)

    print("The update is complete, you can now test and then launch a build upload.")

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
bcadea73c3c222856284c04c19366df261a1f6ff017cfd3442925be6f30aac35 : WAPT/control
fa4433e9df1b560475197ccd3107e5ad6681153d201e2824de80e208b5ad2962 : WAPT/icon.png
57de81b86fe2a720463ae231c4b77d6211855cc7b4ff1a483f0ec7cd5030ce71 : luti.json
96f71f2a6e3e7934445514b93ea1ad5230dd620aed3899222b4e70863f7d2cc4 : setup.py
e548f08ad67dab6b91f5156f6f1d3be2fec90fa1603e9fe95e9685465e16d68f : thunderbird-140.0.tar.xz
33609ad25b1c9c0f4e54fb99a2ecd2c3bea4a834e903f575bf06819a1c7dd677 : thunderbird.desktop
6c39cf28e7ba57f806fee3920faa6c3de9ceb8c4ed54fc95e589f8100a9cc837 : update_package.py