tis-firefox icon

Mozilla Firefox

Paquet d’installation silencieuse pour Mozilla Firefox

142.0.1-111

  • package: tis-firefox
  • name: Mozilla Firefox
  • version: 142.0.1-111
  • categories: Internet
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Mozilla Foundation,Mozilla Corporation
  • licence: MPL 2.0
  • locale: fr
  • target_os: linux
  • impacted_process: firefox
  • architecture: x64
  • signature_date:
  • size: 78.51 Mo
  • homepage : https://www.mozilla.org/
  • conflicts :

package           : tis-firefox
version           : 142.0.1-111
architecture      : x64
section           : base
priority          : optional
name              : Mozilla Firefox
categories        : Internet
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Mozilla Firefox is a free and open-source web browser
depends           : 
conflicts         : tis-firefox-esr,tis-firefox-multi-esr,tis-firefox-multi
maturity          : PROD
locale            : fr
target_os         : linux
min_wapt_version  : 2.3
sources           : https://www.mozilla.org/firefox/all/#product-desktop-release
installed_size    : 
impacted_process  : firefox
description_fr    : Mozilla Firefox est un navigateur web gratuit et open source
description_pl    : Mozilla Firefox to darmowa i open-source'owa przeglądarka internetowa
description_de    : Mozilla Firefox ist ein kostenloser und quelloffener Webbrowser
description_es    : Mozilla Firefox es un navegador web gratuito y de código abierto
description_pt    : Mozilla Firefox é um navegador web gratuito e de código aberto
description_it    : Mozilla Firefox è un browser web gratuito e open-source
description_nl    : Mozilla Firefox is een gratis en open-source webbrowser
description_ru    : Mozilla Firefox - бесплатный веб-браузер с открытым исходным кодом
audit_schedule    : 
editor            : Mozilla Foundation,Mozilla Corporation
keywords          : web,browser,navigateur,firefox,mozilla
licence           : MPL 2.0
homepage          : https://www.mozilla.org/
package_uuid      : afdc56df-4be5-43f6-a397-b0e8561a6cb8
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.mozilla.org/firefox/releases/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 2dc82eade364831757e067169d0039e6e0c9b693f343ea9a62db709eb1942c9e
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-08-27T18:07:35.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         : KF1nWsCwSeWudEgHG6fDJTNiuHVy06WveXyBaJLDGrZbvw3Swqr4mcDBIIA39gfkkkFWXL1+4dVVYvmuuNPqpLoVlvAFPRADZeZCIkmGcVq/yg8QqzufWdVjATHBYEn/PW5AFPhe8igwixU9YR171BdyheOhsCCDu8Kpwc0CoRrCnPr+x73MgLiLF5wNbyRI8X0dSFPLbflwTExSppY3tDn152VEE5mFDL7GWR7w3dWs98xKbeFZt2MiJg4G0T+gtkSQkcNWDb+E3w34YcXHUVuiat71JGufSAu7kVd/zNNW/nwR6fG9FyvRXQw4uMTX2G9F1r2E6Nmr7tf4PTNEMQ==

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


def install():

    filename = f"firefox-{control.get_software_version()}.tar.xz"

    run_notfatal("apt-get remove firefox -y")
    run_notfatal("apt-get remove firefox-esr -y")

    extract_xz(filename)
    killalltasks("firefox")
    if isdir("/opt/firefox-esr"):
        remove_tree("/opt/firefox-esr")
    copytree2("firefox", "/opt/firefox-esr")
    run("chown -R root:root /opt/firefox-esr")
    run("ln -sf /opt/firefox-esr/firefox /usr/bin/firefox")
    filecopyto("firefox.desktop", "/usr/share/applications/firefox.desktop")
    run("chown root:root /usr/share/applications/firefox.desktop")


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


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

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

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

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

    arch_dict = {"x64": "linux64", "x86": "linux", "all": "linux"}

    download_url = requests.head(
        "https://download.mozilla.org/?product=firefox-latest-ssl&os=%s&lang=%s" % (arch_dict[control.architecture], lang), proxies=proxies
    ).headers["Location"]

    latest_bin = download_url.rsplit("/", 1)[1].replace("%20", " ")
    version = latest_bin.split("-")[1].split(".tar")[0]

    version_from_api = (
        wgets("https://product-details.mozilla.org/1.0/firefox_versions.json", proxies=proxies, as_json=True)
        .get("LATEST_FIREFOX_VERSION", "0")
    )

    if Version(version_from_api) > Version(version):
        error('Version retrieved from the API is higher than the downloaded file')

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.tar.xz'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
1dbe20beefbc91a1e600019cdb2757e20f8baede4768ef2bcb5e368990717119 : WAPT/control
2dc82eade364831757e067169d0039e6e0c9b693f343ea9a62db709eb1942c9e : WAPT/icon.png
22b9e600c5014d52338c8212c631e8c773fcf1f215bedeb525d957d053e1d2e2 : firefox-142.0.1.tar.xz
080c0702dd5ff1408644cb834f9d74cdd4ada422836d3e234a5c22cb0979f3fa : firefox.desktop
1a133c504f39383f2076e0cdec93aacabc721916bff1171b0194574de5403177 : luti.json
5f892d4afc3d7642c6ac7b6e1f6e9587f42bf4ff2fd56da090a21ec85b94443f : setup.py
8f85f89637a8a7a8674045acf4385df32dd5f4e322f46860a0a25381da6d95c7 : update_package.py