tis-pymecavideo icon

PyMecavideo

Silent install package for 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
  • locale: all
  • 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            : all
target_os         : windows
min_wapt_version  : 2.0
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      : 8cb83d66-cdf8-43e5-b7b7-6a68b9b6c962
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ca6afc629a51b361e7f444643efe8354d4542dc55c290a515edd7d58bfe47ce9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-19T08:00:10.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         : mrsHiVGsFaDtlgFAU+fjw5WLc6VDc8lzY2wefnhRMkIK4XQG0ev3gBvylg1Y8nhQj3rly6/dY7miXMlQy4YlQl5/sV+4nSI0LPVCNgAtdWhY2klncfueBioSrjZOGW5qR5mGnHUhjSR5PATnCDUqbpzUCVgXC0Yd1jeTGqO/btVH2ZR3To77Hf1tcYNwwnqLvFYy8RJJBVGTqBlfqu6ZpECGizqNebhE+oHRcS4IId/o3fhKiHH8cOwk9iYCYnwT6pdppOPBOxV285MIkXNRCjU+kRrWfgALKwUCBWzXF7qiYbsuSdOyyPoHkvN0QbkjyRSgfK0CWuMy+U+nvLCw0A==

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob("*pymecavideo_*.exe")[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,
    )

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

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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
24a86e3a020751d6c390de1029082a680dedd7f9637c0809496d667e7561a097 : WAPT/control
ca6afc629a51b361e7f444643efe8354d4542dc55c290a515edd7d58bfe47ce9 : WAPT/icon.png
37587a80eb60ff488b81de908d728102cc80944170937aa4468de6811274356b : luti.json
d85103b5649678b422abb5b5486c624597f3174faad5825524f0014a6705072f : pymecavideo_7.2.1.1_setup.exe
bcc8d47ff5672d6b50fbc3e5651ff6c5ab76c7009baa61c3664d2c17eccf284b : setup.py
c1b284f610eb7fa410e5cb4d0b43a2aa1febc7699afec473374d567d999ff924 : update_package.py