
tis-scilab
Paquet d’installation silencieuse pour tis-scilab
2024.0.0-2
- package: tis-scilab
- version: 2024.0.0-2
- maintainer: Simon Fonteneau
- locale: all
- target_os: windows
- impacted_process: WScilex.exe
- architecture: x64
- signature_date:
- size: 186.09 Mo
- installed_size: 1.33 Go
package : tis-scilab
version : 2024.0.0-2
architecture : x64
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 : 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 : fca7a809-beb0-47e2-985b-d08bee2a6297
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : FhR1nMkL92JZhgPnOzTzFY7e96Mqm4eX172lwVRd3qhv8qdfmTBUBj05maEU2HCH6p9d2x+oCDZ7V55oE3RxSw1LE6wFLU5l3k9tp4vfE678b6uQMRCWZv32I1b6ZlfU13LGGBqGsfH5WhIC8IcMjOBpwHnlgXAR1fO079gNbms8hos+i94lJRWRKv7WlaLXtqRW5H5z52+4ha7H6QHS0QmU6zscnnoLThL49VmlFO1n3P4ZCc1hhTrpMEl3HTe4JHQuSIeUdzLWJjLgVSLI1uWP2dIIRv8ctG4Zm+HKUZf+R01sj+ph1V64y0NYk6tvwMdZf/co8iAU3O7+WVil3g==
signature_date : 2023-10-29T15:04:41.168478
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 (64-bit)_is1" % softversion
for soft in installed_softwares("scilab"):
if soft["key"] != keywapt:
run(uninstall_cmd(soft["key"]))
install_exe_if_needed(
glob.glob("scilab*.exe")[0],
silentflags="/SILENT",
key="scilab-%s (64-bit)_is1" % softversion,
min_version=softversion,
killbefore="WScilex.exe",
timeout=600,
)
remove_desktop_shortcut("scilab-%s (64-bit)" % softversion)
remove_desktop_shortcut("scilab-%s (64-bit) 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 = f"https://oos.eu-west-2.outscale.com/scilab-releases/{version}/scilab-{version}.bin.{arch}.exe"
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
f920c8cc90c24263787c6e78cdbc43dc2bfc2bdec95992e2316deea0b641ff1f : setup.py
c55548b552495bbe03878bd690e7d2a48f4049464af05f62eb092a6ffb5ecc8b : scilab-2024.0.0.bin.x64.exe
c99db7abd101e0562c0e7a18cc53a269d6c4727b69d3149686a3d89c2c5e72c6 : update_package.py
280afd5dd8f8d69c4446874d816f7f5e0417016d61cdc2e96cb76dcffd8e39d9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
dceab103e42e0166dfc46d3870935bb1a0490649c0cbb044f91bc3daac36f27c : luti.json
1c87fa873379993f438e1dfb3d0e9d39bf41e667e6540eece03398f13ec7fed8 : WAPT/control