tis-FreeFem icon

FreeFem

Silent install package for FreeFem

4.14

  • package: tis-FreeFem
  • name: FreeFem
  • version: 4.14
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
  • licence: GNU LESSER GENERAL PUBLIC LICENSE
  • locale: all
  • target_os: windows
  • impacted_process: FreeFem
  • architecture: x64
  • signature_date:
  • size: 166.53 Mo
  • installed_size: 551.55 Mo
  • homepage : https://github.com/FreeFem/FreeFem-sources

package           : tis-FreeFem
version           : 4.14
architecture      : x64
section           : base
priority          : optional
name              : FreeFem
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
description       : FreeFEM is a partial differential equation solver for non-linear multi-physics systems in 2D and 3D using the finite element method.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 551553008
impacted_process  : FreeFem
description_fr    : FreeFEM est un solveur d équations aux dérivées partielles pour les systèmes multi-physiques non linéaires en 2D et 3D utilisant la méthode des éléments finis.
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU LESSER GENERAL PUBLIC LICENSE
homepage          : https://github.com/FreeFem/FreeFem-sources
package_uuid      : b9f064f5-562f-4571-b214-0307e9226a38
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 15f4ff96d137c7579c347c336e8b6c4cf937d828c5c472eb4c980857b835df11
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-13T10:04:08.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         : ugPClwSKpVTGK5KDFhDWmARO68lCJ5cRxV4Kbq8+nJvJH4RgIEKdLWnFeBJ1bBtcWiFqZ2ZmIOE9PgvKYdwB3vOxbQVSTPMe4kDSjC+dz3fvD9uWCny3riWCJWs80n1yYAuJY+odrYJUfz/7M22pPDy3DS0O/5youvIfUqaj7kTfx36EHNvqvkOu1yxoF7YwwFtwvSlM1fX3WyHjkFbNt61gtJ67vnqk58/zNH/O4miPr+FQd91yLvDA1MF5RyN1KOFQhvnushkzVnWP+I62i/Vt6UaTKWGVoyKY6hLPleQ7zCqBcP8i5zBfkqd4SPX1h/bdU1Ih+hRnGSPGHl5T9Q==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2024
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    bin_name = glob.glob("freefem*.exe")[0]
    install_exe_if_needed(
        bin_name,
        silentflags="/Silent",
        key="FreeFem++-win64-4.14_is1",
        # Faire un get version
        get_version=get_version,
        min_version=control.get_software_version(),
        timeout=600,
    )

def get_version(app_registry_dict):
    return app_registry_dict["name"].split('version ')[1].split(' ')[0]

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
import json


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/FreeFem/FreeFem-sources/releases/latest"
    os_dict = {"windows": "win64.exe", "debian_based": ".deb", "darwin": ".dmg"}

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for to_download in json_load["assets"]:
        if os_dict[control.target_os] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    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)

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

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

4eac60c6ba57b62f9b2906816b537c56f35ef2a264256bc4109503fdaff9e783 : FreeFem++-4.14-dev-win64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3f72cff5f3af8acce8e8980169a9b93218eb698eaf3b7566fbdbbbacaeedb200 : WAPT/control
15f4ff96d137c7579c347c336e8b6c4cf937d828c5c472eb4c980857b835df11 : WAPT/icon.png
7b7b38c2ee7b82c9b00bfa0db890bcaf90426fd6875c107aeba35e1c34a62181 : luti.json
eed71971c1a14518fccc20b7044e8462c5886dd66ee4289ffac6b139caa0b330 : setup.py
432db03db66943500b75ff1d3580ead05069bc1ef7d322678db9b90700a66ea1 : update_package.py