tis-glpi-agent icon

GLPI Agent

Paquet d’installation silencieuse pour GLPI Agent

1.7.3-0

  • package: tis-glpi-agent
  • name: GLPI Agent
  • version: 1.7.3-0
  • maintainer: Simon Fonteneau
  • licence: GPL-2.0
  • locale: all
  • target_os: windows
  • impacted_process: glpi-agent.exe
  • architecture: x86
  • signature_date:
  • size: 19.39 Mo
  • installed_size: 72.14 Mo
  • homepage : https://github.com/glpi-project/glpi-agent

package           : tis-glpi-agent
version           : 1.7.3-0
architecture      : x86
section           : base
priority          : optional
name              : GLPI Agent
categories        : 
maintainer        : Simon Fonteneau
description       : The GLPI Agent is a generic management agent. It can perform a certain number of tasks, according to its own execution plan, or on behalf of a GLPI server acting as a control point.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 72138232
impacted_process  : glpi-agent.exe
description_fr    : L'Agent GLPI est un agent de gestion générique. Il peut effectuer un certain nombre de tâches, selon son propre plan d'exécution, ou pour le compte d'un serveur GLPI faisant office de point de contrôle.
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : glpi
licence           : GPL-2.0
homepage          : https://github.com/glpi-project/glpi-agent
package_uuid      : 2d34f361-771e-4954-8c33-88d935fab4af
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-04-15T12:25:21.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         : viH8DNDx+toEH5c/fAzSo5KrjuQAUpkprbv7RrkVlJ1vVVMlabCF+jWpQQEb5f3p8ygFve9GkMzvp/eQr3g9tTmdnlCkWPe9qYBQhsAv2AlgNEwXRsshaIoAA9XDse25SrnlYLgIXfFTgFtnHEasAk5t3KaJwP4FuLo9PCV2hc9Gd0Fd/eY0virZ+efUdvrH/B7QBUswP5THShkEpM5iDtO4JTnNsygSItSuvv6pyGIQDVJHzzhdxWG+WqpmTYRkOFfnOWhnRsnrEFBbYTAeXeNC0QA3+ftIL9tq/yXgN7mBmdhzZkMbHIr762p5p9jFFIIlrh0LMha9odMMQ2qZaA==

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


def install():

    install_msi_if_needed(
        glob.glob("*.msi")[0]
    )

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


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

    url_api = "https://api.github.com/repos/glpi-project/glpi-agent/releases/149553246"

    releases = wgets(url_api, proxies=proxies, as_json=True)
    version = releases['tag_name']

    os_dict = {
        "windows-x86": f"GLPI-Agent-{version}-x86.msi",
        "windows-x64": f"GLPI-Agent-{version}-x64.msi",
        "windows-arm64": f"GLPI-Agent-{version}-x64.msi",
        "darwin-arm": f"GLPI-Agent-{version}_arm64.pkg",
        "darwin-x64": f"GLPI-Agent-{version}_x86_64.pkg",
        "debian_based-all": f"glpi-agent_{version}-1_all.deb",
        "redhat_based-all": f"glpi-agent-{version}-1.noarch.rpm",
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    for download in releases["assets"]:
        if download["name"] == os_dict[os_type]:
            download_url = download["browser_download_url"]
            latest_bin = download_url.rsplit("/", 1)[-1]
            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"latest_bin 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.version = get_msi_properties(glob.glob("*.msi")[0])["ProductVersion"] + "-0"
    control.save_control_to_wapt()

357a51f5c0ea8f7d844b774d2960862b0b4652fb50e1b957323a3482c3564409 : GLPI-Agent-1.7.3-x86.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
133cb39a0ea72cfb0e1bc6202d5b96cfd11055f1121d736e60caf57957658e68 : WAPT/control
ff336ad8093a16abe7028748cdebfd0b9e789dd85f0b38d35d3dbdadbc8b6e97 : WAPT/icon.png
e143a00662731c3aaaf1fbf9d63cc6c55d6bc9a20769aff83c62734dfd1a1477 : WAPT/wapt.psproj
2e8761bd08ac7d43ff89a10b8c47e1065a061cf85241fcb10ca1e25745ee7a58 : luti.json
101622b948ee3b3cd57d5203d133fb30120366c505d04a694d00c1b010ee320b : setup.py
52c60809bea67b1e2c252da6adac50ffa2c6c765bbb22501fc1bcd71b3096371 : update_package.py