tis-fogclient icon

FOG Client

Paquet d’installation silencieuse pour FOG Client

0.13.0-3

  • package: tis-fogclient
  • name: FOG Client
  • version: 0.13.0-3
  • categories: System and network,Utilities
  • maintainer: WAPT Team,Tranquil IT,Simon Fonteneau,Jimmy PELÉ
  • locale: all
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 2.30 Mo

package           : tis-fogclient
version           : 0.13.0-3
architecture      : all
section           : base
priority          : optional
name              : FOG Client
categories        : System and network,Utilities
maintainer        : WAPT Team,Tranquil IT,Simon Fonteneau,Jimmy PELÉ
description       : Fog Client ! Warning ! http://fogserver/fog should work, otherwise the installation will crash
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Client Fog Attention ! http://fogserveur/fog doit fonctionner, sinon l'installation va planter
description_pl    : Klient Fog ! Uwaga! http://fogserver/fog powinien działać, w przeciwnym razie instalacja się zawiesi
description_de    : Fog Client ! Achtung ! http://fogserver/fog sollte funktionieren, sonst stürzt die Installation ab
description_es    : ¡Cliente Fog! Advertencia: http://fogserver/fog debe funcionar, de lo contrario la instalación se bloqueará
description_pt    : Cliente Névoa ! Atenção ! http://fogserver/fog deve funcionar, caso contrário a instalação irá falhar
description_it    : Client Fog! Attenzione! http://fogserver/fog deve funzionare, altrimenti l'installazione si blocca
description_nl    : Mist Klant ! Waarschuwing ! http://fogserver/fog moet werken, anders zal de installatie crashen
description_ru    : Fog Client ! Внимание! http://fogserver/fog должен работать, иначе установка будет аварийной
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 12daada1-d467-4f58-8735-b14457000b4b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6f8d0ad7b391ae5f21f0691f4b21182f65eb288443f23ff05986ac54dd651bab
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : XQdTG3RTjX388RbXSolXy+E1IQR6DbtenT9voZGgy3miP63wFMFgxTl7DwCftyIdxiPJqvCfwW/AUmCMHlplqm8nv/6lj5WJrDPF0L8uZfbwXZL/+9bEYmjiyLj4lN9FRsSku8TLfRPPABlAhmfsnIEHSi6LIltJQDzQTomk6/et3ik9RCyI3zrOAD/Ch5VKTJ7snYaY60UUDm+tQJ3vAAfR3K5tbsgiruyNSK3ydxpgFVZK6M0ajr3GnKHvcF+Yu+BrHQamrsAElfMCqRKu0hKK1qWyoibSftsohwz2CDId93jDFMyxu1dbe0Zo+7GwVNgmOZYUQqfX7WD5EspIag==
signature_date    : 2023-03-11T10:02:36.874353
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

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


properties = {
    "USETRAY": 0,
    "HTTPS": 0,
    "WEBADDRESS": "fogserveur",
    "WEBROOT": "/fog",
    "ROOTLOG": 0,
}


def install():
    install_msi_if_needed(
        "FOGService.msi",
        properties=properties,
        min_version=control.get_software_version(),
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
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
    api_url = "https://api.github.com/repos/FOGProject/fog-client/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if download["name"].endswith("FOGService.msi"):
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin).split("-")[0]
    # if not version_from_file.startswith(version) and version_from_file != '':
    if Version(version_from_file) != Version(version) and version_from_file != "":
        print("Changing version to the version number of the binary")
        os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

ba9abd416573c9b1014504146585ce8a749f918ab58ee5f67dc2cd08d9ce45ef : setup.py
f146ec37186bb9346fc578cf7b904f86f3436ff605af77140754e47c4c0dfa47 : update_package.py
6f8d0ad7b391ae5f21f0691f4b21182f65eb288443f23ff05986ac54dd651bab : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
2a90f61ba59280e99b880be8d2ae52575611334269ddd45f509d456f1375d963 : luti.json
195b64febe108e2aa4a3873103f36449169f5ca1871fcf36e7e19e2a82c116ec : FOGService.msi
57edc20a29e7b42188792e152446a56c958dd5bf3058f87bbe02e3ee30fcf94d : WAPT/control