- package: tis-lyx
- name: LyX
- version: 2.4.4-1
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 60.35 Mo
- homepage : https://www.lyx.org/
- depends:
package : tis-lyx
version : 2.4.4-1
architecture : x64
section : base
priority : optional
name : LyX
categories : Office
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : LyX is a document processor that encourages an approach to writing based on the structure of your documents
depends : tis-miktex
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process :
description_fr : LyX est un traitement de documents qui favorise une approche de l'écriture basée sur la structure de vos documents
description_pl : LyX to procesor dokumentów, który zachęca do pisania w oparciu o strukturę dokumentów
description_de : LyX ist ein Dokumentenverarbeitungsprogramm, das eine auf der Struktur Ihrer Dokumente basierende Vorgehensweise beim Schreiben fördert
description_es : LyX es un procesador de documentos que fomenta un enfoque de la escritura basado en la estructura de tus documentos
description_pt : O LyX é um processador de documentos que incentiva uma abordagem à escrita baseada na estrutura dos seus documentos
description_it : LyX è un elaboratore di documenti che incoraggia un approccio alla scrittura basato sulla struttura dei documenti
description_nl : LyX is een documentverwerker die een benadering van schrijven stimuleert die is gebaseerd op de structuur van je documenten
description_ru : LyX - это процессор документов, который поощряет подход к написанию, основанный на структуре ваших документов
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage : https://www.lyx.org/
package_uuid : b0fda108-656a-40c3-a287-1fe0f9f37033
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-06-27T02:00:15.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 : ZKrdlTi6MNpe9myiIWXfQFHoidi4muOPRwTMdn0JbspmFmeiE0WmI9x0H7uSTWTvFd72qkETmvuyGuJ7vrFtTFmkQMqj+GLXXTPozF7+gVwai5HpsOGoA6AynCWWVLmfWbMFYiGTJfXyKdSp9P51kjlnBPjvII4hosBIEbhzRabDWxwS96HfvqeMtFFy5ZgQZnaTaqOjIN0zjInjZbuvoqg0ZulqFkPKwj7/fBhMcvowGhsKzLhoRLE2xTjjRmvzLmHqbapKIHulMYXwWSwfVzsxeC13jdzpK55P7mu8EkW4a4GwqIrp9qM/0hOV5xbPfhitQMTGoK8zDLJH+Ld2qw==
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
bin_name = glob.glob('LyX-*.exe')[0]
# Installing the software
install_exe_if_needed(bin_name,
silentflags='/S',
key='',
min_version=control.get_software_version(),
)
uninstallkey.clear()
def uninstall():
# Force uninstalling the software
for to_uninstall in installed_softwares(name="LyX"):
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(ensure_list(control.impacted_process))
try:
# Adding silent flags to the uninstall command
uninstall_command = uninstall_cmd(to_uninstall["key"]) + " /S "
run(uninstall_command)
wait_uninstallkey_absent(to_uninstall["key"], max_loop=60)
except Exception as e:
print(f"Error during uninstallation: {e}")
# Handling the case where LyX Director might already be partially uninstalled
print("LyX Director might have already been uninstalled.")
print("Removing LyX Director from the list of installed programs.")
if uninstall_key_exists(to_uninstall["key"]):
unregister_uninstall(to_uninstall["key"], win64app=to_uninstall["win64"])
# Clean up any remaining files
if isdir(to_uninstall["install_location"]):
print(f"Removing remaining files in {to_uninstall['install_location']}")
remove_tree(to_uninstall["install_location"])
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
url_base = "https://www.lyx.org/Download"
response = requests.get(url_base,allow_redirects=True, proxies=proxies)
# Extract the correct div using bs_find_all
divs = bs_find_all(response.text, "p","class","vspace", proxies=proxies)
exe_file = None
for div in divs:
if exe_file:
break
links = div.find_all('a', href=True)
for link in links:
if link['href'].endswith('.exe'):
href = link['href']
exe_file = href
download_url = exe_file
latest_bin = exe_file.split('/')[-1]
version = download_url.split('/')[-2]
break
# Downloading latest binaries
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
package_updated = True
else:
print("Binary is present: %s" % latest_bin)
# Deleting outdated binaries
for f in glob.glob('*.exe'):
if f != latest_bin:
remove_file(f)
version =get_version_from_binary(latest_bin).split(' ')[-2]
# Mettre à jour le package
control.set_software_version(version)
control.save_control_to_wapt()
5c28cfaaeeb780f19a1d4ac7a0210d83d140223541bfa25e7e0914d61821126a : LyX-244-Installer-1-x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3c199910e97afa89150b1b12c278eb33a6ddee6de2dcffc3fcd3594a7af011af : WAPT/control
877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3 : WAPT/icon.png
0b5a7319805ea9778727c78fe0bdd3856821286bd66048a072c6ae33d9abea4d : luti.json
0544c9303bbd1760da21a8cca7604613c9a0c6a78a37e01b2340342e98b974be : setup.py
d9975d58c00a189612b7613dbbaa459e5a00b257dbc3213870bfd2a3eb1b6dcf : update_package.py