tis-fogclient icon

FOG Client

Silent install package for FOG Client

0.12.2-3

  • package: tis-fogclient
  • name: FOG Client
  • version: 0.12.2-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.28 Mo

package           : tis-fogclient
version           : 0.12.2-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      : cb363856-3062-4eca-b998-e1b6a75aed86
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 6f8d0ad7b391ae5f21f0691f4b21182f65eb288443f23ff05986ac54dd651bab
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : WNYyrXLpFv6Aja07fhTMKyIyp0AKYR/El+DYDmrJyqRQzzLV4X9xX93SqOfIerPIPl0oDtAcsvSaBnNsWwpHLt2zZUPzINQXD8B+eqOXUG/uYXgWF576hjerfrLLC7iquRC5I2O52MB4X3sBD1zb6DVtHkaZAJzibJUZJno49wP4u6Ptf+E8lgxLWDxzNAD2pdkOJTMegOCf5q0KoUTrXVMpciTfeU/wzv4uoldEF04liMSuq/kfolE6cQJhTMzrW0Ey34W1orQ1YsX5QBCtiuz69YStRQkszyhfG8wDS0MccbwZcn95NhkxYXVN/vVuisyKJGQwnn5dOTqgnz/Wbg==
signature_date    : 2022-10-01T02:00:11.482515
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
7aa70cf72995b460ad3d4ef327b12ee199b10c9c6b1775d26f1ab707208923e2 : luti.json
545dd6d36d94b78a74315ce89f129f72a5a7a908bc869ca36d33027a4dc3e3e8 : FOGService.msi
c4d82f1f6c8e4ab4941465c3d4f153ef39dbec91bfd1657f78c706b52115a2e5 : WAPT/control