- package: tis-lyx
- name: LyX
- version: 2.4.3-1
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 59.33 Mo
- homepage : https://www.lyx.org/
- depends:
package : tis-lyx
version : 2.4.3-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 : b787cb31-9e31-4dc8-bd97-3e0c9c3af57f
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-01-21T04:00: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 : rh90qIkes9NqfPBExSIrt+egmeSRiMSR0VfLECbFaoXd2dC5PDKzu16Q4y13JCDr7hjbxNxsZnjJfcbYUgqj0qLHEBW4svJcpEJ20hKG2r45jTf1SNXAayQdOa6XmouDUfguNLct6mmopzK9a8FpNEAPuANHDigCbNdv2NoKAo5uza1xb1iNmJrTpA9AQlEwC6OcSGwwcB7f7AhzNrBgpyH7k76EME+6GRr8k/LbpgBwK2yim6QvFQlwGPvPCHJjj+x1LxJ9oedHl+ogttOhFwR9WAPaJYh20B1KdMQaCa+Eb3zK0gvK8WEj60mZW1mi7aMkzYFv6OUi+pCJHyqb1Q==
# -*- 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()
922dfe286309e7258d119eb486306d860065d109c01354c7193b0e81a77103a5 : LyX-243-Installer-1-x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8e9c8782f4faa8039df17ee2e510bb75b9605250481fdbb47313308b1349c0f9 : WAPT/control
877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3 : WAPT/icon.png
2372ad273ad41e6d5c456fe9c8b8204041d9a30b92fa62ea3c3f6b9aee7913f3 : luti.json
0544c9303bbd1760da21a8cca7604613c9a0c6a78a37e01b2340342e98b974be : setup.py
d9975d58c00a189612b7613dbbaa459e5a00b257dbc3213870bfd2a3eb1b6dcf : update_package.py