tis-scilab icon

tis-scilab

Paquet d’installation silencieuse pour tis-scilab

2024.1.0-2

  • package: tis-scilab
  • version: 2024.1.0-2
  • maintainer: Jordan ARNAUD
  • locale: all
  • target_os: darwin
  • impacted_process: WScilex.exe
  • architecture: x64
  • signature_date:
  • size: 280.38 Mo
  • installed_size: 1.33 Go

package           : tis-scilab
version           : 2024.1.0-2
architecture      : x64
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Jordan ARNAUD
description       : Scilab
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.3
sources           : 
installed_size    : 1333592064
impacted_process  : WScilex.exe
description_fr    : Scilab
description_pl    : Scilab
description_de    : Scilab
description_es    : Scilab
description_pt    : Scilab
description_it    : Scilab
description_nl    : Scilab
description_ru    : Scilab
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 6702499f-4c58-431b-98c6-c49e5a8ee938
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : crqis6lTaH6kg37zIxRtC63OTGLG5E5nS1r66NTHh8zS2ouz4kkJZKZIjuPZJlWZIi/UPe9w/BPHEuyGr/gGs6Q//zcJkyHwPNoYaase62sm8KKOR4GEcu23Np1clIRDWfSQYmZ0S2ipC3Y3nrZc/aQT+fFeOUVcuUmKwdK2Ipl7Ai4XNBZg7gC7sbPOvEurtGLL3Cy340uDNzG4J/I73uouJJLgjIq5haoe/qlxXcONlcf1g25g8GzwzQ3FcWZomh816Mvkb+5EC15PU3Q9p4UBBXSJfqSdKVDzz+No0aDNguWu6h1BxTZz2XfIh1Xj8XJ37giRsNa2K2+Axw+JUg==
signature_date    : 2024-08-03T13:01:35.119777
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

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


def install():
    install_dmg(glob.glob("scilab-*-x86_64.dmg")[0])


def uninstall():
    remove_tree("/Applications/scilab-2024.1.0.app")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    update_dict = {
        "bin_contains": {
            "mac-x64": "-x86_64.dmg",
            "windowsn-x64": "x64.exe",
        },
        # "latest_bin": {
        #     "windows-x64": "MicrosoftEdgeWebView2RuntimeInstallerX64.exe",
        #     "windows-x86": "MicrosoftEdgeWebView2RuntimeInstallerX86.exe",
        #     "windows-arm64": "MicrosoftEdgeWebView2RuntimeInstallerARM64.exe",
        # },
        # "download_url": {
        #     "windows-x64": "https://go.microsoft.com/fwlink/?linkid=2124701",
        #     "windows-x86": "https://go.microsoft.com/fwlink/?linkid=2099617",
        #     "windows-arm64": "https://go.microsoft.com/fwlink/?linkid=2099616",
        # },
    }
    url = "https://www.scilab.org/latest/"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url,"a", "href",proxies=proxies):
        if "-x86_64.dmg" in bs_search.get("href", ""):
            download_url = bs_search["href"].rsplit(".mirrorlist")[0]
            latest_bin = download_url.split("/")[-1]
            version = latest_bin.split("-")[1]
            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)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)
    # arch_list = ensure_list(control.architecture)
    # remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) == Version(version, 4):
            print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
        else:
            error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        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()

    # Validating or not update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

ad461a380647d6365aa34e3f175542e48a688d2aebdaabe635d8f8a6c923104d : setup.py
df2c1348388890517053b2a03babdf292e8344e91b03a98b85393f63c57c8482 : update_package.py
a856a62a85622654c6dff0a4035c1b9f152d1c6d99b4edee67e1589baa68c196 : scilab-2024.1.0-x86_64.dmg
280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
30ae4fc9d6dbc31db165bc0faea49ec4216743ad078f59ff6265e25884547d21 : luti.json
ea6261b295269607ead9563627165be3d2980b28f01b33ceec857f31728422f1 : WAPT/control