tis-carmetal icon

CaRMetal

Paquet d’installation silencieuse pour CaRMetal

4.3-6
Utilities
Utilities

  • package: tis-carmetal
  • name: CaRMetal
  • version: 4.3-6
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Morgan HINESTROSA,Bertrand LEMOIGNE
  • editor: Patrice Debrabant
  • licence: GPLv3
  • locale: all
  • target_os: windows
  • impacted_process: CaRMetal,javaw
  • architecture: all
  • signature_date:
  • size: 45.16 Mo
  • installed_size: 175.89 Mo
  • homepage : http://carmetal2.free.fr/

package           : tis-carmetal
version           : 4.3-6
architecture      : all
section           : base
priority          : optional
name              : CaRMetal
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Morgan HINESTROSA,Bertrand LEMOIGNE
description       : CAR-based dynamic geometry software
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : http://carmetal2.free.fr/site/telechargements.php
installed_size    : 175886336
impacted_process  : CaRMetal,javaw
description_fr    : Logiciel de géométrie dynamique basé sur CAR
description_pl    : Oprogramowanie do geometrii dynamicznej oparte na CAR
description_de    : CAR-basierte dynamische Geometrie-Software
description_es    : Software de geometría dinámica basado en CAR
description_pt    : Software de geometria dinâmica baseada em CAR
description_it    : Software di geometria dinamica basato su CAR
description_nl    : Op CAR gebaseerde software voor dynamische geometrie
description_ru    : Программное обеспечение для динамической геометрии на основе CAR
audit_schedule    : 
editor            : Patrice Debrabant
keywords          : 
licence           : GPLv3
homepage          : http://carmetal2.free.fr/
package_uuid      : 80d37daa-1467-4b1d-8749-6183e40ac60a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 5.1
max_os_version    : 
icon_sha256sum    : 54fe1ebec17c8273fccd8bc3908569206e63f7f2feb46016d033c2b306db96cf
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : J59hLkAeXuHfcHXaVBcEdxtyrq3YHe/NwC5ngvnKnvdcaB1ld+quIYSTETxjiYrQ5qhKkbtFld1vnCRBqpSI5twpaeeQQVJdwjuc09dTb04C2vPayOYB8TE4EYUVkGypwg14fiTwb5f3e1w7hv3Vat4qNyVjuwAKocXs+2N9GEV6CmsA2PKpfSIm8Ncff5tQn4LDLSqMmvZ0CyMED+TNpWvP7mFDi7IS3xu1kJNEb2a1UmU8RurAfOgilZDf+8teKgZro6mciVwuvUi+2ux95JogRzfRNg3Do2G3p+pgbygGF+qoGbl90CddCCVGXa9psfYFaAAh3jMWs+qqyn+nIw==
signature_date    : 2022-07-28T02:55:21.485926
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 *

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



def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("carmetal_setup*.exe")[0]

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT",
        key="{1132C151-4EEC-4901-BF1E-A5F3545BFAD2}_is1",
        min_version=package_version,
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import bs4 as BeautifulSoup

def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = "http://carmetal2.free.fr/site/telechargements.php"
    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", proxies=proxies):
        if bs_search.text == "Télécharger":
            latest_bin = bs_search["href"].split("/")[-1]
            version = latest_bin.split("_")[-1].rsplit(".", 1)[0]
            download_url = "http://carmetal2.free.fr/site/" + bs_search["href"]
            break

    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_version_from_binary(latest_bin)
        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, bin_contains + version_from_file + ".exe")
            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)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    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 or not update-package-sources
    return result

3b2b34269ee3b5704ec69692e5123ecddb0ee22043d13608854a9d85ddc3bcf7 : setup.py
f9e9c9ebeb8e7c72f101f4460142cdbc396930135a24da47cbfa7b0453703ff9 : update_package.py
2428ff34747379939c81c0acc5ff2a6735145df3a97bbf03c4705c926175dfa2 : carmetal_setup_4.3.exe
54fe1ebec17c8273fccd8bc3908569206e63f7f2feb46016d033c2b306db96cf : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
75afa61a8394762a3e7fd860e09edf4f66c09019a1c1cab2f29d018e1d508267 : luti.json
1351a4353fb0eeb2f14bcf8e1ad0defe7a747b317bedc8153febb333af6b3b22 : WAPT/control