tis-pymecavideo icon

PyMecavideo

Paquet d’installation silencieuse pour PyMecavideo

7.2.1.1-3

  • package: tis-pymecavideo
  • name: PyMecavideo
  • version: 7.2.1.1-3
  • categories: Media
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
  • target_os: windows
  • impacted_process: pymecavideo
  • architecture: x64
  • signature_date:
  • size: 94.97 Mo

package           : tis-pymecavideo
version           : 7.2.1.1-3
architecture      : x64
section           : base
priority          : optional
name              : PyMecavideo
categories        : Media
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
description       : Pymecavidéo est un logiciel de pointage de vidéo permettant l'analyse mécanique des mouvements.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 1.7
sources           : https://download.tuxfamily.org/oppl/windows/
installed_size    : 
impacted_process  : pymecavideo
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 857a7862-29da-4691-aa91-560a367c509c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ca6afc629a51b361e7f444643efe8354d4542dc55c290a515edd7d58bfe47ce9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Ss9JoCyL7B1WZ/GD9PVifc4aju81q85Aw0bgeyIjynv0Yg7gvzTDMBmL9F1jjV6wrnr5j7AzGxfkLWKSkl3uouLpF7Te9CiqGgnGnwB1dkl7EQ7VJ7d7f1XG+F2sO+Jyt3drYR/iIb3kbbkJNDMqI6xAnUmWG4lIRDORtLrKuOSwhQ0bApGhsiFNx4OUocGGGTAAjpPga+0vWUMplUcwitJX/Tpas+svY7QS04i1OkwHp2Le+buDsSA+pMGuwtc7PRs2riKqRe6pC0A5nvLAWC7jV2htWgqtu/UpMmPGUagwzMfs4w9QieiHri/D6pQSfAlAW20aEDayjju+PLBsKQ==
signature_date    : 2022-03-23T12:15:15.735469
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 *
import re

# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = 'pymecavideo_'


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob('*%s*.exe' % bin_contains)[0]
    used_version = get_product_props(bin_name)['ProductVersion']

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key='pymecavideo %s_is1' % used_version,
        min_version=used_version,
    )


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    sub_bin_name = 'pymecavideo_%s_setup.exe'
    url = 'http://download.tuxfamily.org/oppl/windows/'

    # Getting latest version information from official sources
    version = re.findall('pymecavideo_(.*)_setup.exe"', ensure_unicode(wgets(url, proxies=proxies)))[-1]
    latest_bin = sub_bin_name % version
    download_url = url + latest_bin

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_product_props(latest_bin)['FileVersion']
        if Version(version) != Version(version_from_file) and version_from_file != '':
            print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
            os.rename(latest_bin, sub_bin_name % version_from_file)
            version = version_from_file
        else:
            print("Binary file version correspond 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)))
        result = True
    control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
    #control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result



7168c3760865450e8277dd282668d9fe9dd26b1a767e2f8b69768c4dd29d2081 : setup.py
d85103b5649678b422abb5b5486c624597f3174faad5825524f0014a6705072f : pymecavideo_7.2.1.1_setup.exe
ca6afc629a51b361e7f444643efe8354d4542dc55c290a515edd7d58bfe47ce9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d115c126bdff3192683691f4876dfd67512b5f07b1e8d7eaad680840e326efff : luti.json
b46052f67abfb849ebb1f2fb0f42a4f50f8eea576892f2be7f39895dc07a5be9 : WAPT/control