tis-FreeFem icon

FreeFem

Silent install package for FreeFem

4.16-1
Utilities
Utilities

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-FreeFem
  • name: FreeFem
  • version: 4.16-1
  • 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: 209.80 Mo
  • installed_size: 551.55 Mo
  • homepage : https://github.com/FreeFem/FreeFem-sources

package           : tis-FreeFem
version           : 4.16-1
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          : PREPROD
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      : a9deb834-df94-4a14-b958-c7b94c46fb29
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 15f4ff96d137c7579c347c336e8b6c4cf937d828c5c472eb4c980857b835df11
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-03-31T20:00:19.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         : jsR75baAdQwQsxVunUg53kkh1KIp9hvK4rhVqx02uST133mHW9XMV6fwRcZyUSdzecCRRPA1+fCSnNCOQ0ov5VO+Je+9ggz4r/crKUD1sToKVkSMbj5WzUB5pzWCAleiq8oxwyVX7ajjVr1S0IFLOgv8sopQkuxApwHKW2D19fLrjBKHm+ZspXrqBxCYEdASepuHNcIdHZHj04y6d2FOnp0V7dL6L1TDK1yW39rZJ9UxwpqtT6PvfdKy5m/O6ESq0O5ZH78Lva8NA7lQvfc7HQ0N+cKZx4MwU8JWl94p6hRUH+SkDN+vjdpGzorfFRPXbrrNbFZY2XAhQZGDQEM+yw==

# -*- 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="/VERYSILENT /NORESTART",
        key=f"FreeFem++-win64-{control.get_software_version()}_is1",
        get_version=get_version,
        min_version=control.get_software_version(),
    )

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


def uninstall():
    
    # Uninstalling the software
    for to_uninstall in installed_softwares("Freefem"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

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

38df81255bbff05e12dc88142dae5ca01cc20d8654edcf0530a82fff81268f95 : FreeFEM-4.16-amd64-win64.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
f73a319972f1c1dacb772029708d851617487ddda311aa5a14e416050b5f407e : WAPT/control
15f4ff96d137c7579c347c336e8b6c4cf937d828c5c472eb4c980857b835df11 : WAPT/icon.png
f39e78e6ac9f0fc050a7bc144ab58f0f33f8a7c130762b07ea07bd58e43a0027 : luti.json
c4d4bd0d97c373713b7f177c4f7b61226a2caf6ae0957ef5009a7080080466a7 : setup.py
432db03db66943500b75ff1d3580ead05069bc1ef7d322678db9b90700a66ea1 : update_package.py