tis-trytonclient icon

Tryton Client

Silent install package for Tryton Client

7.2-2

  • package: tis-trytonclient
  • name: Tryton Client
  • version: 7.2-2
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELE,Ingrid TALBOT
  • editor: Cedric Kier
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: tryton
  • architecture: x64
  • signature_date:
  • size: 41.33 Mo
  • installed_size: 139.89 Mo
  • homepage : https://www.tryton.org/

package           : tis-trytonclient
version           : 7.2-2
architecture      : x64
section           : base
priority          : optional
name              : Tryton Client
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELE,Ingrid TALBOT
description       : Customer for Tryton ERP
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://www.tryton.org/download
installed_size    : 139894477
impacted_process  : tryton
description_fr    : Client pour l'ERP Tryton
description_pl    : Klient Tryton ERP
description_de    : Kunde für Tryton ERP
description_es    : Cliente de Tryton ERP
description_pt    : Cliente da Tryton ERP
description_it    : Cliente per Tryton ERP
description_nl    : Klant voor Tryton ERP
description_ru    : Клиент для Tryton ERP
audit_schedule    : 
editor            : Cedric Kier
keywords          : erp
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : https://www.tryton.org/
package_uuid      : ba82b9e8-1d44-448b-8879-1e1a28538a34
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://docs.tryton.org/latest/modules-product-kit/releases.html
min_os_version    : 
max_os_version    : 10.0
icon_sha256sum    : c47ff46598f5233b2a0bdef592e9243f55392b590e4f2d77f0a7643f9903f77f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : cMwLKB9MPGpXVbVL/CKTJElnK1K8RBJi7Zhjpb9tUdoBOiVbc7AQwFjGwKOgaDvdnIsoprbQyhikxYjR11ja8ostAE2GMgaZgl7yYHjs7mtPQPaYr3W3ji6g62eTTGLhJOWBlBft5Kv4eAqboeR/Aiw2CYVbpDpQqVMsE0TFJH14dGq+gQD5B2ttKgH9FluqdVoPEMNQ5CxzasDCtZD35HpdM5WuW/kQSYuZ+V34ZdoJY2g9ZZSNpbzNFkdIpmXcouk7iyfMPxY6hPH8C+WuAQKNMcMhELgKkZg7N4V1nZFk9zMW0PytP21R3WMs8AQRqJ5IAgdRxIynsbKRSThGEA==
signature_date    : 2024-05-11T21:00:33.489203
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 *


def install():
    print("installing tis-tryton")
    bin_name = glob.glob("tryton-64bit-*.exe")[0]
    install_exe_if_needed(bin_name, silentflags="/S", key="tryton-64bit-%s" % str(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()

    download_dict = {
        "windows-x64": requests.head("https://downloads.tryton.org/current/tryton-64bit-last.exe", proxies= proxies).headers[
            "Location"
        ],
        "windows-x86": requests.head("https://downloads.tryton.org/current/tryton-32bit-last.exe", proxies=proxies).headers[
            "Location"
        ],
    }

    download_url = download_dict[ensure_list(control.target_os)[0].split("(")[0] + "-" + ensure_list(control.architecture)[0]]

    latest_bin = download_url.split("/")[-1]
    version_from_url = download_url.split("/")[-2]
    latest_bin = latest_bin.replace("last", version_from_url)

    # Deleting binaries
    # remove_outdated_binaries("*")
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            os.remove(f)

    # Downloading latest binaries
    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)

    version = version_from_url


    # 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()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

ddb41d76cef620dfb2e17e4dbe897d35bb502739969b7f10c10adc27a5fa2407 : setup.py
70b79c3a176ba7204fe2e17a8f64f9383127c5dd4922f329a111d5cce31cf7ec : tryton-64bit-7.2.exe
fb6e82004b0ea571d5d7b600985887d0ee9e36f9f844001a39c148b4020ef3bf : update_package.py
c47ff46598f5233b2a0bdef592e9243f55392b590e4f2d77f0a7643f9903f77f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
52fa038792a3e0b06af288b4599727c3e4b5139d00bfe165a1e5636d9be773cc : luti.json
df1672be2bcb8d5b18ed4b57cdcd94c008df374dcdf5581bed21201cdc479160 : WAPT/control