tis-mathgraph32 icon

MathGraph32

Paquet d’installation silencieuse pour MathGraph32

9.2.5-2

  • package: tis-mathgraph32
  • name: MathGraph32
  • version: 9.2.5-2
  • categories: Education
  • maintainer: WAPT Team,Tranquil IT,Simon Fonteneau,Gaëtan SEGAT
  • editor: Yves Biton
  • licence: GPL
  • locale: all
  • target_os: windows
  • impacted_process: MathGraph32JS
  • architecture: x64
  • signature_date:
  • size: 95.37 Mo
  • homepage : https://www.mathgraph32.org/

package           : tis-mathgraph32
version           : 9.2.5-2
architecture      : x64
section           : base
priority          : optional
name              : MathGraph32
categories        : Education
maintainer        : WAPT Team,Tranquil IT,Simon Fonteneau,Gaëtan SEGAT
description       : Free software for geometry, analysis and multiplatform simulation by Yves Biton
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.mathgraph32.org/spip.php?rubrique11
installed_size    : 
impacted_process  : MathGraph32JS
description_fr    : Logiciel libre de géométrie, d'analyse et de simulation multiplateforme par Yves Biton
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Yves Biton
keywords          : 
licence           : GPL
homepage          : https://www.mathgraph32.org/
package_uuid      : bbdea84d-07a8-4578-9b9f-5c9ad83cf9d7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : d922791c37711111b090f201c74bfa17d715f52810475f042e00d87a22352cd1
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-24T15:27:45.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         : jKPqSz/ngyOHPtSwN3dys6NjG4+8NykEwSOiS8fJV+eDBfY6gD4CmTbMmwNdD0xXM2YbSKwTCk1V59IeRCOJij5JfKtsYttgZ+5ie9Hd4+CxBxnaZn+0Wt9QjGBvUkX6URjKkQRoniWbujdMawtQde/NR8YxUMZeMBbY/fk7EjzVwPK8EuOMCsMiKk3yZ19gFh8N3v7T0SvBGL62a9B9Xp45RQitIXbyzhn3xptXMIgBJ8Pmz7OGQ21LfLNimLIDgqEXKQinsUYGc8Bo6LoEx0qzmOkS6oMlaLfK/d4YBRrFUohSli+fCbusURTBjqR35+mKSA3wbOpNARr7dwaW5g==

# -*- 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
bin_contains = "MathGraph32JS"
silentflags = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART"
app_uninstallkey = "{31BC28F5-98A9-4C4F-828E-22F937C4E349}_is1"

def versmathgrap32(key):
    return get_version_from_binary(glob.glob("%s*.exe" % key["install_location"])[0])

def install():
    # Declaring local variables
    package_version = control.get_software_version()
    zip_name = glob.glob("*%s*.zip" % bin_contains)[0]
    unzip(zip_name,target='.')
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]

    # Remove old version
    for oldmathgraph32 in installed_softwares("MathGraph32 Java"):
        run(uninstall_cmd(oldmathgraph32["key"]))

    print("installing mathgraph32")
    for soft in installed_softwares(app_uninstallkey):
        if "32 bit" in soft["name"]:
            run(uninstall_cmd(app_uninstallkey))

    # Install
    install_exe_if_needed(
        bin_name,
        silentflags,
        key=app_uninstallkey,
        min_version=package_version,
        get_version=versmathgrap32,
    )
    register_uninstall(uninstallkey=app_uninstallkey,display_version=package_version)
    remove_desktop_shortcut("MathGraph32JS")

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


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 = "https://www.mathgraph32.org/"
    bin_contains = "MathGraph32JS"
    download_url = "https://www.mathgraph32.org/IMG/zip/setupmathgraph32js-64bits.zip"
    latest_bin = download_url.split("/")[-1]

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "div", "id", "telver", proxies=proxies, timeout=10):
        if bin_contains in str(bs_search):
            version = str(bs_search).split(">v")[1].split("</")[0]
            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)
    else:
        print("Binary is present: %s" % latest_bin)

    # 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

e219a6f46440a2fc705797bd8b17d5b5cf6af1760726152cf200cd0ced0141a0 : .env
14ad0a69d92a20510b92d026fe91299b2a0a62cb001340b4a8d260f51899d24f : .vscode/launch.json
68676efb5d187ea18bd8eedee0fff3b8e4bdbbcad4d14a5a694938174a463b57 : .vscode/settings.json
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
eb9c2aa318f63e96ea3f1f3ed6e6b646f5a3d28004d28c9ee33a5b0e50cd3c18 : WAPT/changelog.txt
0f87afed32be1841fbf045a6bcafbc087b5af57c5c3488eb4e5f55e04238e583 : WAPT/control
d922791c37711111b090f201c74bfa17d715f52810475f042e00d87a22352cd1 : WAPT/icon.png
c6246be77fa0d87cb8860fc9de433dfc02b56edaaca368712d5b6267141eeee4 : WAPT/wapt.psproj
ecf5f0661da61340f08aa93c3f72572e17a1504c9abbccb7afe8d83101de57dd : luti.json
9f7d3947f0233308f8398b6a6159e3f0c510a506b27931ff1a77f1d8cd9e0a86 : setup.py
32b63ccdd8ef8a68718a7fe109afe990b90886f181c0c2299150d17a9ca7390b : setupmathgraph32js-64bits.zip
d58bdfbb0fe8001aaa2512ea60c07039d4178afdd4af126d5107900871a66590 : update_package.py

-2
===
change version check

7.3.0-0
===
improve code
split update package