tis-llvm icon

llvm

Silent install package for llvm

21.1.8-3

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-llvm
  • name: llvm
  • version: 21.1.8-3
  • maintainer: Amel FRADJ
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 349.67 Mo

package           : tis-llvm
version           : 21.1.8-3
architecture      : x86
section           : base
priority          : optional
name              : llvm
categories        : 
maintainer        : Amel FRADJ
description       : The LLVM Project is a collection of modular and reusable compiler and toolchain technologies
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Le projet LLVM est un ensemble de technologies modulaires et réutilisables de compilateurs et de chaînes d'outils
description_pl    : Projekt LLVM jest zbiorem modułowych kompilatorów wielokrotnego użytku i technologii toolchain
description_de    : Das LLVM-Projekt ist eine Sammlung von modularen und wiederverwendbaren Compiler- und Toolchain-Technologien
description_es    : El proyecto LLVM es una colección de tecnologías de compiladores y cadenas de herramientas modulares y reutilizables
description_pt    : O Projeto LLVM é uma coleção de tecnologias modulares e reutilizáveis de compiladores e cadeias de ferramentas
description_it    : Il progetto LLVM è una raccolta di tecnologie modulari e riutilizzabili per compilatori e toolchain
description_nl    : Het LLVM Project is een verzameling van modulaire en herbruikbare compiler- en toolchaintechnologieën
description_ru    : Проект LLVM - это коллекция модульных и многократно используемых технологий компиляторов и инструментальных цепочек
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 56872e81-6e18-4205-9d37-b7673ce14098
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4acf467171987fbdd8bd05eef15fd2a5f395de21078c7dd7375354f64e93ebf2
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-03-12T13:41:44.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         : oKI8a6xZ8xxJ2K7EOmLYbvquUyJ+IfJl7glVbydJsOKIzXRr8IwRwQIcADTFu4cKt0gIdaX7sUTDIGEICLrE08fuzLrZ/vVa619T0PxH8pS/D4htOVOD+DxIUYxmJdwtL0dRedBILcrhIjWEgj+zju1T+Hd7pXjk8hHedO9OgNVZhIPbI2cfrx+8pA74rAFv7GI2glhZhYonWg+wea7Mj9JGzvIFWt7cN8J/ZUUsxnJk2xRpC4aB1XJC7uBJIM5yvnHG2RTNyQ3s+xk1fhf2NSCq/I7aiQY+AuNQPdlU4cYfQnK5Vkv1PmecyNzt3iLWrCIMbmGjksxwlARiSy58pA==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"LLVM",
   "name":"LLVM",
   "version":"18.1.6",
   "install_date":"",
   "install_location":"",
   "uninstall_string":"C:\\Program Files\\LLVM\\Uninstall.exe",
   "publisher":"LLVM",
   "system_component":0,
   "win64":false
  }

"""


def install():
    # Declaring local variables
    bin_name = glob.glob(f"LLVM-*-win32.exe")[0]
    
    # Installing the software
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='LLVM',
        min_version=control.get_software_version(),
    )



# -*- 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

    dict_arch = {
        "x64": "-win64.exe", 
        "x86": "-win32.exe",
        "arm64": "-woa64.exe"
    }    
    url_api = "https://api.github.com/repos/llvm/llvm-project/releases"

    print("API used is: %s" % url_api)
    releases = wgets(url_api, proxies=proxies, as_json=True)

    latest_release = max(
        (
            release for release in releases
            if not release['prerelease'] and
            any(asset['name'].endswith(dict_arch[control.architecture]) for asset in release['assets'])
        ),
        key=lambda r: Version(r['tag_name'].split('-')[-1])
    )

    for download in latest_release["assets"]:
        if dict_arch[control.architecture] in download["name"]:
            download_url = download["browser_download_url"]
            version = latest_release["tag_name"].split('-')[-1]
            latest_bin = download["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break
    
    # 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'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

0492c5c292e515ebbbc2533671e54c5895fe209e534812313f64257407233181 : LLVM-21.1.8-win32.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
74dedb15a68837d0af2eca34c58f1f984a1baa688bed7130c296cf6de0271e0a : WAPT/control
4acf467171987fbdd8bd05eef15fd2a5f395de21078c7dd7375354f64e93ebf2 : WAPT/icon.png
85dbe7056d20fe4e87f96d902bf55d659d481ddd41975feb653287c3cf4c4396 : luti.json
2908b779f50c636598825485f5516f10a233a861801657d3121b5bc187dcf1b3 : setup.py
426b47e0833ab718a8e8573f801ec5c03607954cc0f4aacc30235ab0eea42385 : update_package.py