
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: debian_based
- impacted_process: WScilex.exe
- architecture: x64
- signature_date:
- size: 208.20 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 : debian_based
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 : 7c388f83-e733-405a-ab62-bd4a03af8d4e
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : ITcscXdnQKqoIOsv6XQfx64UHAPnkb4cSk4dNxamRz0ukB7upQWvviz8WoiLh65yCd8qBcLQvQDE/OLP9E2AM9E3nnIfkc+wPN58llqZw543ryvZfp3h92PPODKb/TUN5V8kTiW0q5vtMiT0ZSBChPcawNRP+cx2xTMX0CpTzo3siZs1+fLev7mwVXjZiRULzH1rNzj/RfGUKChcAeuGjX1oVlBcf1qvYv4SiNRm/Sg5/GjEuAzCXsnNQRCWQPJdSAY1B4i9j/9VA/Vr0nphr+5UUAz5r8t0cbx+Tt7QsoBHwCpult31EBSz5MNQVA4GO5+ETaJE4HSYg9FucC15yQ==
signature_date : 2024-09-03T13:03:33.658368
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 *
bin_path = makepath("/", "usr", "local", "bin")
app_path = "/opt/scilab"
def install():
# Extraction and copying to /opt/scilab
extract_path = glob.glob("*.tar.xz")[0]
run(f"tar -xJvf {extract_path}")
char_len = len(extract_path) - 28
extract_path = extract_path[:char_len]
bin_name = glob.glob(extract_path)[0]
print(f"copying scilab to {app_path}")
if not isdir(app_path):
mkdirs(app_path)
copytree2(bin_name, app_path)
# Creation of symlink
if not isfile(f"{bin_path}/scilab"):
print("create scilab alias in path")
os.symlink(f"{app_path}/scilab", f"{bin_path}/scilab")
if isdir(extract_path):
remove_tree(extract_path)
def uninstall():
# Removing of symlink
if isfile(f"{bin_path}/scilab"):
remove_file(f"{bin_path}/scilab")
# Removing of the software
if isdir(app_path):
remove_tree(app_path)
# -*- 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",
"windows-x64": "x64.exe",
"debian_based-x64" : "tar.gz"
},
}
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 "tar.xz" in bs_search.get("href", ""):
download_url = bs_search["href"].rsplit(".mirrorlist")[0]
latest_bin = download_url.split("/")[-1]
version = latest_bin.split("-")[1].split(".bin")[0]
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)
a5f24e5da65da48a571bcf204f6edd7dca9406d678db183b80460aa56ef936c8 : setup.py
0eeddf0ce260dd1dc6a38a044d11447f5f48faaf4400ab83db3ab7d706aa1751 : scilab-2024.1.0.bin.x86_64-linux-gnu.tar.xz
455a595d59a1366c6d4f0e18683aa212158bd796a47b2f883a31381412461167 : update_package.py
280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c3ee33b669a4f9c002dea5c8b32aaf87402dda8b248dabcc850acb5379ad54a2 : luti.json
e02a8a506a52679e1c0d14628ed6d78836b40d360599eb04f6e25961fbc4cf0a : WAPT/control