tis-nelson icon

Nelson

Paquet d’installation silencieuse pour Nelson

1.10.0.4516-1

  • package: tis-nelson
  • name: Nelson
  • version: 1.10.0.4516-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Nelson numerical software
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: NelSon-cli,NelSon-gui,NelSon-sio-cli
  • architecture: x86
  • signature_date:
  • size: 174.00 Mo
  • installed_size: 1.30 Go

package           : tis-nelson
version           : 1.10.0.4516-1
architecture      : x86
section           : base
priority          : optional
name              : Nelson
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Nelson is an array programming language providing a powerful open computing environment for engineering and scientific applications
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 1295599431
impacted_process  : NelSon-cli,NelSon-gui,NelSon-sio-cli
description_fr    : Nelson est un langage de programmation de tableaux qui offre un environnement informatique ouvert et puissant pour les applications scientifiques et d'ingénierie
description_pl    : Nelson to macierzowy język programowania zapewniający potężne otwarte środowisko obliczeniowe do zastosowań inżynieryjnych i naukowych
description_de    : Nelson ist eine Array-Programmiersprache, die eine leistungsfähige offene Rechenumgebung für technische und wissenschaftliche Anwendungen bietet
description_es    : Nelson es un lenguaje de programación de matrices que ofrece un potente entorno informático abierto para aplicaciones científicas y de ingeniería
description_pt    : Nelson é uma linguagem de programação de matrizes que proporciona um poderoso ambiente de computação aberto para aplicações científicas e de engenharia
description_it    : Nelson è un linguaggio di programmazione ad array che fornisce un potente ambiente di calcolo aperto per applicazioni ingegneristiche e scientifiche
description_nl    : Nelson is een matrixprogrammeertaal die een krachtige open computeromgeving biedt voor technische en wetenschappelijke toepassingen
description_ru    : Nelson - это язык программирования массивов, представляющий собой мощную открытую вычислительную среду для инженерных и научных приложений
audit_schedule    : 
editor            : Nelson numerical software
keywords          : development,scientific,engineering
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : 
package_uuid      : 158bb3e5-675a-4e59-accb-90e9727121d2
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/nelson-lang/nelson/releases
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : d9e61ce7a5a6a8c15405e8784b4da0ddf31cc12999d86f6582ab36f19ec3101a
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-19T18:00:12.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         : sL24JJ4kZbzQ9dXQZd7ki9mNb1yUbQx6KW6Gve4DiQXorGB+tnzfmVQ85DtZhPrprSJzuyKPqvHVVU0BwCc7TVRZ1NFE18s40vSyFzQxU2v3neuFh9AyFVPTATzu10S/+OdMdvcd8z78Jm+Z39YJ8rN7fS4bUEp7P8y37UtX3AzU+H8yGbEjzu63TM91sHvMDNJoVNISS5k9HRJHgy5u6a8SH/frRuGDK1PHyVyG2pFV4LqlwOO8Sz9TJszUIkNFR4vg17O6LoNPmSXJxV2NZWcmVoor1DeTFvPbRhlrjBuxFBlMDKFTU4guwWGIVqORwire0wWra/gl0TLencR7XA==

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

def install():
    bin_name = glob.glob("Nelson-*-x86-32.exe")[0]
    install_exe_if_needed(bin_name, silentflags="/allusers /VERYSILENT",
    key = "{2ED97A2C-CAA6-467F-82D9-02FC564A8950}_is1",
    min_version=control.get_software_version())

    #Creating menu shortcut
    version = control.get_software_version()
    dir_name = fr"Nelson-{version} (32 bits)"
    create_programs_menu_shortcut('Nelson', target = makepath(programfiles,dir_name,"bin","win32","NelSon-gui.exe"))


def uninstall() :
    remove_programs_menu_shortcut('Nelson')

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {"x64": "x86-64.exe", "x86" : "x86-32.exe"}
    api_url = "https://api.github.com/repos/nelson-lang/nelson/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".exe") and update_dict[control.architecture] in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"].replace("v","")
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un exe a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    version = get_version_from_binary(latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

c94fc765b8363efe5ee04730ae010109607fc25e5e4a375a525e43eb97734aa4 : Nelson-1.10.0.4516-x86-32.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
23018c0bf449a1fa333340eaff26e2011b822fb68ba0f423b0e0e893a03076c0 : WAPT/control
d9e61ce7a5a6a8c15405e8784b4da0ddf31cc12999d86f6582ab36f19ec3101a : WAPT/icon.png
523abc58a7aafc023931d697274cb9b06c74d47167af35ffcec65ed557b1113f : luti.json
4836330121e5d34d7a3b5a59c06c0803219efbf02e4b0f0b11da655890323f88 : setup.py
727aa1e648c8a0717241b24ca24a6d01ffba9a202ff95083321338e844fb473c : update_package.py