- package: tis-firefox
- name: Mozilla Firefox
- version: 140.0.4-111
- categories: Internet
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- editor: Mozilla Foundation,Mozilla Corporation
- licence: MPL 2.0
- locale: en
- target_os: linux
- impacted_process: firefox
- architecture: x64
- signature_date:
- size: 74.73 Mo
- homepage : https://www.mozilla.org/
- conflicts :
package : tis-firefox
version : 140.0.4-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 : en
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 : 83005678-1419-4556-8a9f-83f8b619b653
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-07-08T17:06:25.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 : qlrFjFO+4Ku6zxyWB3JOSt64bUeQZr23XQWErTipa4SO+sPtag+envptfkvpIonuqnrt5a3bZt6j7l9GZybG0ktggZnEH9UY2TsjjXyurVMuZqYfuh2zA9G4y7VWJlRHFPT1O5a5j+/5KRGe4mrZdCtzjVHHtsvOqeLiqdcPUXChuKavyn+wMa9HcS8Zwfsd+8WQkgs2stX6l/WWKHmxQM/gRtqnVBsMeCdHZ3DmbTSARtlxx34jdD1uTTUTCoHtA9Mtl4fQf23PE8SOBthbmDCW0ly1JyLzf9YJK/nfeh6ZxoFMV+SLW0zvZ+2p4tZCbtPmwa0gSctw5vkgFisSHA==
# -*- 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
5019e571a968421985d6c301088193a7e8f42be3d098bcb998fe61473c525258 : WAPT/control
2dc82eade364831757e067169d0039e6e0c9b693f343ea9a62db709eb1942c9e : WAPT/icon.png
63e0033e6f4dd0576074de3cf1f70feec43359f923ed9055e554cf84b13856f6 : firefox-140.0.4.tar.xz
080c0702dd5ff1408644cb834f9d74cdd4ada422836d3e234a5c22cb0979f3fa : firefox.desktop
afd0eb7f93e80feaf49fc75f4e0594bd938efa08e0ac2244b7174851e83209bd : luti.json
5f892d4afc3d7642c6ac7b6e1f6e9587f42bf4ff2fd56da090a21ec85b94443f : setup.py
8f85f89637a8a7a8674045acf4385df32dd5f4e322f46860a0a25381da6d95c7 : update_package.py