tis-scilab icon

Scilab

Paquet d’installation silencieuse pour Scilab

2025.0.0-4

  • package: tis-scilab
  • name: Scilab
  • version: 2025.0.0-4
  • maintainer: Jordan ARNAUD
  • editor: Dassault Systèmes
  • licence: GPLv2
  • locale: all
  • target_os: darwin
  • impacted_process: WScilex
  • architecture: x64
  • signature_date:
  • size: 297.97 Mo
  • installed_size: 1.33 Go
  • homepage : https://www.scilab.org/

package           : tis-scilab
version           : 2025.0.0-4
architecture      : x64
section           : base
priority          : optional
name              : Scilab
categories        : 
maintainer        : Jordan ARNAUD
description       : Scilab is an open-source, multi-platform numerical computation program that provides a computational environment for scientific applications.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.3
sources           : 
installed_size    : 1333592064
impacted_process  : WScilex
description_fr    : Scilab est un logiciel libre de calcul numérique multi-plateforme fournissant un environnement de calcul pour des applications scientifiques.
description_pl    : Scilab to wieloplatformowy pakiet oprogramowania do obliczeń numerycznych o otwartym kodzie źródłowym, który zapewnia środowisko obliczeniowe do zastosowań naukowych.
description_de    : Scilab ist eine plattformübergreifende freie Software für numerische Berechnungen, die eine Rechenumgebung für wissenschaftliche Anwendungen bereitstellt.
description_es    : Scilab es un paquete de software de cálculo numérico multiplataforma y de código abierto que proporciona un entorno de cálculo para aplicaciones científicas.
description_pt    : O Scilab é um pacote de software de computação numérica de código aberto e multiplataforma que fornece um ambiente computacional para aplicações científicas.
description_it    : Scilab è un pacchetto software di calcolo numerico open-source e multipiattaforma che fornisce un ambiente di calcolo per applicazioni scientifiche.
description_nl    : Scilab is een open-source, multi-platform numeriek berekeningssoftwarepakket dat een rekenomgeving biedt voor wetenschappelijke toepassingen.
description_ru    : Scilab - это многоплатформенный пакет программ для численных расчетов с открытым исходным кодом, который предоставляет вычислительную среду для научных приложений.
audit_schedule    : 
editor            : Dassault Systèmes
keywords          : 
licence           : GPLv2
homepage          : https://www.scilab.org/
package_uuid      : 530f0d83-0f7e-4244-b41c-c2d716abb1ea
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://help.scilab.org/docs/2025.0.0/en_US/CHANGES.html
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-30T11:01:57.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         : heInvv5G8zLg7iGWJRKPq+dT8sTviqckQvdgOk/XONcVbM5lYNonuAxjBISlEVxF6O5bCqFt3fqw9twgCCe0dIHaVnWoQkOvKVWzantnuTJi/YcwQyzyec+krrm7jMLOwtQNUzjIYnDTctT25wH5Ce9DOLlq+AgZ/zTkIloXn6/V0yna0BSYtRT4/qqxlF5tUgi3U/gh74upF36secNToV0KbjSmpmUkDlzIXR2xlkwBexHHTUnvCC1RXXsOnQITBEmFR0SzUi1ZzNy7etOxozCjYGCv30/E+pQfVMaCzEjtrZsHVVlfDvU74wplv5Ag73YUvaYNQrgsTTClV3IG5w==

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


def install():

    uninstall_older_version()
    install_dmg(glob.glob("scilab-*-x86_64.dmg")[0])


def uninstall():

    app_folder_name = f"scilab-{control.get_software_version()}.app"
    app_path = makepath("/Applications", app_folder_name)

    if isdir(app_path):
        remove_tree(app_path)


def uninstall_older_version():
    killalltasks(ensure_list(control.impacted_process))
    for soft in installed_softwares(control.name):
        if Version(soft['version']) < Version(control.get_software_version()):
            remove_tree(soft['install_location'])

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

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    download_dict = {
        'windows-x64' : 'Windows 64 bits',
        'debian_based-x64' : 'Linux 64 bits',
        'darwin-x64' : 'macOS 64 bits'
    }
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    url = "https://gitlab.com/api/v4/projects/3330423/releases/"
    print(f"URL used is: {url}")

    latest_release = wgets(url, proxies=proxies, as_json=True)[0] # Get latest realease
    version = latest_release["tag_name"]

    for link in latest_release["assets"]["links"]:
        if link["name"].endswith(download_dict[os_type]):
            download_url = link["url"]
            latest_bin = download_url.rsplit('/', 1)[-1]

    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Deleting outdated binaries
    for f in glob.glob('*.dmg'):
        if f != latest_bin:
            remove_file(f)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {version})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({version})")

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
be696c985a11d1e1574563cc7445d4ab9e47f6fc2e23cda38cca977314c4626d : WAPT/control
280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9 : WAPT/icon.png
c8bbf9baa9b9e976a9bce6e6f08e20bbf0fcd9b56fdb57576d3991f339d1e1d2 : luti.json
d02ae625f8d3b7b1a4a3a7ad0671fd6142edab0c01ee90d81c3c04fda92e5ae0 : scilab-2025.0.0-x86_64.dmg
965cd70d6c03ca2090f56d5a5f032756b0c5de60e897ef81ea4bbcc582769414 : setup.py
7e5e43dd21cfbdf331ab5f8fa96f11175af49d98a988c9792e0fa02c52c8eabb : update_package.py