
tis-scilab
Paquet d’installation silencieuse pour tis-scilab
6.1.1-2
- package: tis-scilab
- version: 6.1.1-2
- maintainer: Simon Fonteneau
- locale: all
- target_os: windows
- impacted_process: WScilex.exe
- architecture: x86
- signature_date:
- size: 168.38 Mo
- installed_size: 638.06 Mo
package : tis-scilab
version : 6.1.1-2
architecture : x86
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : Scilab
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources :
installed_size : 638062592
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 : 760f1db3-0f95-4212-9361-13cf07d04651
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : BegAm4Iw0cyIGcdtEcMy0XoQbZUArtGWUTZCJO5/uS4JgkaSlNNC+CSQDYYOtpl10Q9yF7WE2Eh6ppwdGr9ZTQhG6gnwijmOuUgL6XGYOP1sYeEEXNPA7Qxqjdk53INd4VObHBSeDp7Fe5wIWluXa1yvnGPCQ/NV/njJz7EUlc46Qo2+4RiP6XafHun/QdXj84eVjA+yJCyZfW6WmIqLlsWwb5mexWhyLoiqvAn007ALMIzWyuy/2ripfyWhzbo+rTgGyf8VI5CyAtsvXd3TYJb1ovz1gWHbQ2bwG1fHpY2uP9yOedE+8mWvNBVP9e0gVXNXjoFNcaKBMme6JpEVbg==
signature_date : 2022-08-01T04:19:05.935382
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 -*-
from setuphelpers import *
def install():
softversion = control.get_software_version()
keywapt = "scilab-%s_is1" % softversion
print("installing Scilab")
for soft in installed_softwares("scilab"):
if soft["key"] != keywapt:
run(uninstall_cmd(soft["key"]))
install_exe_if_needed(
"scilab-%s.exe" % softversion,
silentflags="/SILENT",
key="scilab-%s_is1" % softversion,
min_version=" ",
killbefore="WScilex.exe",
timeout=600,
)
remove_desktop_shortcut("scilab-%s" % softversion)
remove_desktop_shortcut("scilab-%s Desktop" % softversion)
# -*- coding: utf-8 -*-
from setuphelpers import *
bin_contains = "scilab-"
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
url = "https://www.scilab.org/latest/"
if control.architecture == "x64":
arch = "x64"
else:
arch = "x86"
sub_bin_name = bin_contains + "%s" + arch
# Getting latest version from official sources
print("URL used is: %s" % url)
version = wgets(url).split('href="/download/scilab-')[1].split('" hreflang="en">')[0]
download_url = "https://www.scilab.org/download/6.1.1/scilab-%s.exe" % version
latest_bin = download_url.rsplit("/")[-1]
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % download_url)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
# if not version_from_file.startswith(version) and version_from_file != '':
if Version(version_from_file) != Version(version) and version_from_file != "":
print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
os.rename(latest_bin, bin_contains + version_from_file + bin_ends)
version = version_from_file
else:
print("Binary file version corresponds to online version")
# 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)))
result = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
# control.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating or not update-package-sources
return result
e26ee423b94ae5acc85770bbafca1d3f566c33ee75c1f0396bbb1156f864b07c : setup.py
96c4b75a256b04e654a660b893014e2bb8fcda7b59fb3bc298c4fe89906ea86c : update_package.py
280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
ec0cc88920031fc195bf059c3de54c55dc59e82c8520d2824cfe61e55bc80e98 : luti.json
43336cda96251d3dde9106fc5f1302ae722ab83e8a6bf894dff3238ea02be779 : scilab-6.1.1.exe
ed426a00dda7fe4379eb3c5f22ad66de200a2d7ed889b9fef36e8acc7692e85a : WAPT/control