- package: tis-lyx
- name: LyX
- version: 2.4.2-1
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 59.61 Mo
- homepage : https://www.lyx.org/
- depends:
package : tis-lyx
version : 2.4.2-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 : ccdf0b9d-f164-4f0a-8ce5-02ddd1af76d5
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 : 2024-10-09T09:03:59.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 : GblyzhOl6wMnWC6/W/r5X8AVGRea9apuknCVO/kX2rkSnAuILOoSAXi8iRGktoMhqiMEYsvyA0DgGFkoQ7mv91muhPHi527aVkgsEdxIi05Ky0paTLVqALw7a65WZpqN/pu+v9lo6MCPsSc/NgEMup4PTGDKVgSEAblY5VixlrsovRCE/4WalYI+MT90wGeBMfJF1eNK5Xb9Lak6gTJwgTHUYuS3JM3NXiYag5+9wk2G4VarECGKdOV5NuFpUSXDe2YdvR1NKHapjp2GFTv/xxOZkBzk4c/qfTgHcP+YmhV8TzDZStfM3aFAI6hgYS/3VpPjCJCkpX+NcQtlJWg6hw==
# -*- 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()
f9f4a331f7939135ae6853d873f0e1e8038a5e7798d5eb349517495653c69195 : LyX-242-Installer-1-x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2b10273b2419fa5bb891ee5065f71a32dc690e25c9341327f30b6220624f4dee : WAPT/control
877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3 : WAPT/icon.png
2d11feb6d0b926b118e46546b4a21882adb03e24e8f35e4f70757b33ea872e75 : luti.json
0544c9303bbd1760da21a8cca7604613c9a0c6a78a37e01b2340342e98b974be : setup.py
d9975d58c00a189612b7613dbbaa459e5a00b257dbc3213870bfd2a3eb1b6dcf : update_package.py