tis-lazarus icon

Lazarus

Paquet d’installation silencieuse pour Lazarus

4.2-9

  • package: tis-lazarus
  • name: Lazarus
  • version: 4.2-9
  • categories: Development,Education
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Simon FONTENEAU
  • editor: Lazarus and Free Pascal Team
  • licence: GNU
  • locale: all
  • target_os: windows
  • impacted_process: lazarus,startlazarus,lazres,lazbuild,LazGDeBugControl
  • architecture: x86
  • signature_date:
  • size: 196.63 Mo
  • installed_size: 1.69 Go
  • homepage : https://www.lazarus-ide.org/

package           : tis-lazarus
version           : 4.2-9
architecture      : x86
section           : base
priority          : optional
name              : Lazarus
categories        : Development,Education
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon FONTENEAU
description       : Lazarus is a multiplatform RAD / EDI developed in Free Pascal for Free Pascal. Its goal is to provide Object Pascal programmers with an easy-to-use development environment that is as close to Delphi as possible
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://sourceforge.net/projects/lazarus/files/
installed_size    : 1693990912
impacted_process  : lazarus,startlazarus,lazres,lazbuild,LazGDeBugControl
description_fr    : Lazarus est un RAD/EDI multiplateforme développé en Free Pascal pour Free Pascal. Son objectif est de fournir aux programmeurs Pascal Objet un environnement de développement facile à utiliser s'approchant le plus possible de Delphi
description_pl    : Lazarus to wieloplatformowy RAD / EDI opracowany w Free Pascal dla Free Pascal. Jego celem jest zapewnienie programistom Object Pascal łatwego w użyciu środowiska programistycznego możliwie najbliższego Delphi
description_de    : Lazarus ist eine Multiplattform-RAD / EDI, die in Free Pascal für Free Pascal entwickelt wurde. Ziel ist es, Object Pascal-Programmierern eine benutzerfreundliche Entwicklungsumgebung zur Verfügung zu stellen, die Delphi so nahe wie möglich kommt
description_es    : Lazarus es un RAD / EDI multiplataforma desarrollado en Free Pascal para Free Pascal. Su objetivo es proporcionar a los programadores de Object Pascal un entorno de desarrollo fácil de usar que esté lo más cerca posible de Delphi
description_pt    : Lazarus é um RAD / EDI multiplataforma desenvolvido em Free Pascal for Free Pascal. O seu objectivo é fornecer aos programadores do Object Pascal um ambiente de desenvolvimento fácil de usar que seja o mais próximo possível da Delphi
description_it    : Lazarus è un RAD / EDI multipiattaforma sviluppato in Free Pascal per Free Pascal. Il suo obiettivo è fornire ai programmatori Object Pascal un ambiente di sviluppo facile da usare e il più possibile simile a Delphi
description_nl    : Lazarus is een multiplatform RAD / EDI ontwikkeld in Free Pascal voor Free Pascal
description_ru    : Lazarus - это многоплатформенный RAD / EDI, разработанный на Free Pascal для Free Pascal. Его цель - предоставить программистам на Object Pascal простую в использовании среду разработки, максимально приближенную к Delphi
audit_schedule    : 
editor            : Lazarus and Free Pascal Team
keywords          : 
licence           : GNU
homepage          : https://www.lazarus-ide.org/
package_uuid      : 02b1bb6b-9c4f-429c-9d30-878312633a72
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://wiki.freepascal.org/Special:RecentChanges
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 55af2ce1692f2d63199717fcb1c98deabdf583cd250852e9989857938cafd2c3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-25T15:03:11.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         : URAOo2nLjuBiAssA+lMZjvMrZCurQrLUVXLo+aHLQsQavyTea6NXsnq/8ZGL6bNAF1/IPGAbDaAziurLalbmC7lBkPgR68CC0Jh/56/b41x/IAUAemmunhSLzMkCjZUo9Kk014oZ/xvaklMYXC4ULd1duiBJah2m9EKaRPaAQXZeNLr8nbxg6EHkAZKA1Aa3E1BTZEcwHDioovKa5AiOwbjuTtpjCXdwpIJ/ApQvp6YAql+Eyx81MB3hRPEcVnORrfPT+G1UkOD2vLhl39gL0s20sJ6i4Ef0dmIcMV2jd2we5cclWjdNBYLSk3YmokP2MSeFsGqWUZ9M5Sc7zayoFQ==

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


def install():
    # Declaring local variables
    bin_name = glob.glob("lazarus-*win32.exe")[0]
    app_dir = makepath(systemdrive, "lazarus")
    app_uninstallkey = "lazarus_is1"
    
    # Cleanup Lazarus if needed
    if isdir(app_dir):
        if not uninstall_key_exists(app_uninstallkey):
            remove_tree(app_dir)

    # Installing the software
    install_exe_if_needed(
        bin_name,
        silentflags=f'/DIR="{app_dir}" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART',
        key=app_uninstallkey,
        min_version=control.get_software_version(),
    )

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


def table_to_list(table):
  result = []
  for row in table.find_all('tr')[2:]:
    for col in row.find_all('td'):
        link = col.find('a')
        if not link:
            continue
        result.append(link.string.strip('/'))
  return result

def get_only_valid_version(all_folder_version):
    version_dict = []
    for folder in all_folder_version:
        version_str = folder.split()[-1]
        if any(c.isalpha() for c in version_str):
            continue 
        version_dict.append({'version': version_str, 'folder': folder})
    return version_dict

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
    
    base_url = "https://download.lazarus-ide.org"
    
    folder_arch_download_dict = {
        'windows-x64': 'Lazarus Windows 64 bits',
        'windows-x86': 'Lazarus Windows 32 bits',
        'debian_based-x64': 'Lazarus Linux amd64 DEB',
        'debian_based-arm': 'Lazarus Linux arm64 DEB',
        'darwin-x64': 'Lazarus macOS x86-64',
        'darwin-arm': 'Lazarus macOS aarch64'
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]
    os_type_download_folder_url = f"{base_url}/{folder_arch_download_dict[os_type]}"
    
    all_folder_version = table_to_list(bs_find(os_type_download_folder_url, 'table', proxies=proxies))
    version_dict = get_only_valid_version(all_folder_version)
    latest_version_dict = sorted(version_dict, key=lambda x: Version(x['version']), reverse=True)[0]
    
    folder_files_url = f"{os_type_download_folder_url}/{latest_version_dict['folder']}"
    files = table_to_list(bs_find(folder_files_url, 'table', proxies=proxies))
    
    latest_bin = next((file for file in files if file.startswith('lazarus-')), None)
    latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
    version = latest_version_dict['version']
    download_url = f"{folder_files_url}/{latest_bin}"

    # 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}")

    expected_issuer = "Stichting Programming Free Pascal & Lazarus Foundation"
    sign_name = waptlicences.check_msi_signature(latest_bin)[0]
    if sign_name != expected_issuer:
        error(f'Bad issuer {sign_name} != {expected_issuer} ')

    # 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'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b378f7a47b3e9b3325c1c923cb1afc821cfe20c3c8072ffceac0d7e669ca86a7 : WAPT/changelog.txt
7416823d7b432b6854229764e45e9a453d936b9484b373b9bf134803f937eb44 : WAPT/control
55af2ce1692f2d63199717fcb1c98deabdf583cd250852e9989857938cafd2c3 : WAPT/icon.png
77c7b3545f974571f8d4b8a92fa9b36e96501fa9df253bbba9b10a878a408ca5 : lazarus-4.2-fpc-3.2.2-win32.exe
2a082d96efec6ca82e8b2f9221e6ea1f5a2294b8a7f088d77148e40974b5a933 : luti.json
d0039cb06e41c95e3188d706bae077a2115204bcac5576a2a5ba15e8a4bcc110 : setup.py
cb9f10174ee7cff8163b09be6f4a1296e55307473267c6c84e1c8e745c258d77 : update_package.py

https://wiki.freepascal.org/Special:RecentChanges
2.2.0.1
===
Split update-package